mirror of
https://code.forgejo.org/actions/cascading-pr
synced 2025-03-15 06:46:59 +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-token "${{ inputs.destination-token }}" \
|
||||||
--destination-branch "${{ inputs.destination-branch }}" \
|
--destination-branch "${{ inputs.destination-branch }}" \
|
||||||
--update "${{ inputs.update }}" \
|
--update "${{ inputs.update }}" \
|
||||||
--prefix "${{ inputs.prefix }}"
|
--prefix "${{ inputs.prefix }}" \
|
||||||
|
run
|
||||||
|
|
|
@ -16,6 +16,13 @@ DEBUG=false
|
||||||
|
|
||||||
: ${LOOP_DELAY:=5}
|
: ${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() {
|
function debug() {
|
||||||
DEBUG=true
|
DEBUG=true
|
||||||
set -x
|
set -x
|
||||||
|
|
|
@ -119,6 +119,7 @@ function finalize_options() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function run() {
|
function run() {
|
||||||
|
dependencies
|
||||||
repo_login ${options[destination_repo]}
|
repo_login ${options[destination_repo]}
|
||||||
upsert_branch
|
upsert_branch
|
||||||
upsert_pr
|
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 }}
|
origin-pr: ${{ github.event.pull_request.number }}
|
||||||
destination-url: ${{ env.GITHUB_SERVER_URL }}
|
destination-url: ${{ env.GITHUB_SERVER_URL }}
|
||||||
destination-repo: user2/destinationrepo
|
destination-repo: user2/destinationrepo
|
||||||
destination-token: ${{ secrets.DESTINATION_TOKEN }}
|
|
||||||
destination-branch: main
|
destination-branch: main
|
||||||
update: upgraded
|
destination-token: ${{ secrets.DESTINATION_TOKEN }}
|
||||||
|
update: ./upgraded
|
||||||
debug: true
|
debug: true
|
||||||
|
|
Loading…
Add table
Reference in a new issue