mirror of
https://code.forgejo.org/actions/cascading-pr
synced 2025-03-14 22:36:58 +01:00

* workflows that have close-merge need to change to close * the behavior for when origin-pr is set does not change * the behavior for when origin-ref is set is to honor close instead of always closing the PR
21 lines
598 B
YAML
21 lines
598 B
YAML
# SPDX-License-Identifier: MIT
|
|
name: test
|
|
on: [push]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: docker
|
|
steps:
|
|
- uses: SELF@vTest
|
|
with:
|
|
origin-url: ${{ env.GITHUB_SERVER_URL }}
|
|
origin-repo: user1/origin-branch
|
|
origin-token: ${{ secrets.ORIGIN_TOKEN }}
|
|
origin-ref: refs/heads/main
|
|
destination-url: ${{ env.GITHUB_SERVER_URL }}
|
|
destination-repo: user2/destinationrepo
|
|
destination-branch: main
|
|
destination-token: ${{ secrets.DESTINATION_TOKEN }}
|
|
close: true
|
|
update: ./upgraded
|
|
debug: true
|