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:
parent
b0c8a634f3
commit
51fac222bd
5 changed files with 12 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
0
forgejo-curl.sh
Normal file → Executable 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
|
||||
|
|
Loading…
Add table
Reference in a new issue