1
0
Fork 0
mirror of https://code.forgejo.org/actions/cascading-pr synced 2025-03-14 22:36:58 +01:00

install dependencies

This commit is contained in:
Earl Warren 2023-10-13 14:24:19 +02:00
parent b0c8a634f3
commit 51fac222bd
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
5 changed files with 12 additions and 3 deletions

View file

@ -65,4 +65,5 @@ runs:
--destination-token "${{ inputs.destination-token }}" \
--destination-branch "${{ inputs.destination-branch }}" \
--update "${{ inputs.update }}" \
--prefix "${{ inputs.prefix }}"
--prefix "${{ inputs.prefix }}" \
run

View file

@ -16,6 +16,13 @@ DEBUG=false
: ${LOOP_DELAY:=5}
function dependencies() {
if ! which jq curl > /dev/null ; then
apt-get update -qq
apt-get -qq install -y jq curl
fi
}
function debug() {
DEBUG=true
set -x

View file

@ -119,6 +119,7 @@ function finalize_options() {
}
function run() {
dependencies
repo_login ${options[destination_repo]}
upsert_branch
upsert_pr

0
forgejo-curl.sh Normal file → Executable file
View file

View file

@ -14,7 +14,7 @@ jobs:
origin-pr: ${{ github.event.pull_request.number }}
destination-url: ${{ env.GITHUB_SERVER_URL }}
destination-repo: user2/destinationrepo
destination-token: ${{ secrets.DESTINATION_TOKEN }}
destination-branch: main
update: upgraded
destination-token: ${{ secrets.DESTINATION_TOKEN }}
update: ./upgraded
debug: true