30 lines
944 B
YAML
30 lines
944 B
YAML
# 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
|