2023-10-15 11:37:51 -05:00
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
on:
|
2023-10-29 12:49:00 -05:00
|
|
|
pull_request_target:
|
2023-10-15 11:37:51 -05:00
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- synchronize
|
|
|
|
- closed
|
|
|
|
jobs:
|
|
|
|
cascade:
|
|
|
|
runs-on: docker
|
2023-11-10 12:09:49 -06:00
|
|
|
if: vars.CASCADE != 'no'
|
2023-10-15 11:37:51 -05:00
|
|
|
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
|
2023-11-04 08:23:25 -05:00
|
|
|
destination-fork-repo: cascading-pr/setup-forgejo
|
2023-10-15 11:37:51 -05:00
|
|
|
destination-branch: main
|
|
|
|
destination-token: ${{ secrets.CASCADING_PR_DESTINATION }}
|
2023-10-24 16:39:39 -05:00
|
|
|
close-merge: true
|
2023-10-15 11:37:51 -05:00
|
|
|
update: .forgejo/cascading-pr-setup-forgejo
|