diff options
Diffstat (limited to '.forgejo/workflows/cascade-runner.yml')
-rw-r--r-- | .forgejo/workflows/cascade-runner.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.forgejo/workflows/cascade-runner.yml b/.forgejo/workflows/cascade-runner.yml new file mode 100644 index 0000000..6ee43ca --- /dev/null +++ b/.forgejo/workflows/cascade-runner.yml @@ -0,0 +1,30 @@ +# SPDX-License-Identifier: MIT +on: + pull_request_target: + types: + - opened + - synchronize + - closed +jobs: + cascade: + runs-on: docker + if: vars.CASCADE != 'no' + container: + image: 'docker.io/node:20-bookworm' + steps: + - uses: https://code.forgejo.org/actions/setup-go@v4 + with: + go-version: "1.21" + - uses: actions/cascading-pr@v1 + with: + origin-url: ${{ env.GITHUB_SERVER_URL }} + origin-repo: forgejo/act + origin-token: ${{ secrets.CASCADING_PR_ORIGIN }} + origin-pr: ${{ github.event.pull_request.number }} + destination-url: ${{ env.GITHUB_SERVER_URL }} + destination-repo: forgejo/runner + destination-fork-repo: cascading-pr/runner + destination-branch: main + destination-token: ${{ secrets.CASCADING_PR_DESTINATION }} + close-merge: true + update: .forgejo/cascading-pr-runner |