summaryrefslogtreecommitdiffstats
path: root/.forgejo/workflows/cascade-setup-forgejo.yml
diff options
context:
space:
mode:
Diffstat (limited to '.forgejo/workflows/cascade-setup-forgejo.yml')
-rw-r--r--.forgejo/workflows/cascade-setup-forgejo.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.forgejo/workflows/cascade-setup-forgejo.yml b/.forgejo/workflows/cascade-setup-forgejo.yml
new file mode 100644
index 0000000..6d94f01
--- /dev/null
+++ b/.forgejo/workflows/cascade-setup-forgejo.yml
@@ -0,0 +1,25 @@
+# SPDX-License-Identifier: MIT
+on:
+ pull_request_target:
+ types:
+ - opened
+ - synchronize
+ - closed
+jobs:
+ cascade:
+ runs-on: docker
+ if: vars.CASCADE != 'no'
+ steps:
+ - uses: actions/cascading-pr@v1
+ with:
+ origin-url: ${{ env.GITHUB_SERVER_URL }}
+ origin-repo: forgejo/runner
+ origin-token: ${{ secrets.CASCADING_PR_ORIGIN }}
+ origin-pr: ${{ github.event.pull_request.number }}
+ destination-url: ${{ env.GITHUB_SERVER_URL }}
+ destination-repo: actions/setup-forgejo
+ destination-fork-repo: cascading-pr/setup-forgejo
+ destination-branch: main
+ destination-token: ${{ secrets.CASCADING_PR_DESTINATION }}
+ close-merge: true
+ update: .forgejo/cascading-pr-setup-forgejo