mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2024-11-21 20:27:17 +03:00
25 lines
809 B
YAML
25 lines
809 B
YAML
# 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
|