2023-10-15 16:37:51 +00:00
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
on:
|
2023-10-29 17:49:00 +00:00
|
|
|
pull_request_target:
|
2023-10-15 16:37:51 +00:00
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- synchronize
|
|
|
|
- closed
|
|
|
|
jobs:
|
|
|
|
cascade:
|
|
|
|
runs-on: docker
|
2024-11-20 09:50:07 +00:00
|
|
|
container:
|
|
|
|
image: 'code.forgejo.org/oci/node:20-bookworm'
|
2023-11-10 18:09:49 +00:00
|
|
|
if: vars.CASCADE != 'no'
|
2023-10-15 16:37:51 +00:00
|
|
|
steps:
|
2024-12-17 14:31:19 +00:00
|
|
|
- uses: https://code.forgejo.org/actions/cascading-pr@v2.2.0
|
2023-10-15 16:37:51 +00:00
|
|
|
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
|
2023-11-04 13:23:25 +00:00
|
|
|
destination-fork-repo: cascading-pr/setup-forgejo
|
2023-10-15 16:37:51 +00:00
|
|
|
destination-branch: main
|
|
|
|
destination-token: ${{ secrets.CASCADING_PR_DESTINATION }}
|
2023-10-24 21:39:39 +00:00
|
|
|
close-merge: true
|
2023-10-15 16:37:51 +00:00
|
|
|
update: .forgejo/cascading-pr-setup-forgejo
|