2023-11-04 13:14:39 -05:00
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
on:
|
|
|
|
pull_request_target:
|
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- synchronize
|
|
|
|
- closed
|
|
|
|
jobs:
|
|
|
|
cascade:
|
|
|
|
runs-on: docker
|
2023-11-10 12:09:14 -06:00
|
|
|
if: vars.CASCADE != 'no'
|
2023-11-04 13:14:39 -05:00
|
|
|
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
|