close-merge input

Fixes: https://code.forgejo.org/actions/cascading-pr/issues/7
This commit is contained in:
Earl Warren 2023-10-24 22:51:30 +02:00
parent f8a65b3d9f
commit 5caaedbc52
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
7 changed files with 80 additions and 9 deletions

View file

@ -0,0 +1,26 @@
# SPDX-License-Identifier: MIT
name: test
on:
pull_request_target:
types:
- opened
- synchronize
- closed
jobs:
test:
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: SELF@vTest
with:
origin-url: ${{ env.GITHUB_SERVER_URL }}
origin-repo: user1/originrepo-close-merge
origin-token: ${{ secrets.ORIGIN_TOKEN }}
origin-pr: ${{ github.event.pull_request.number }}
destination-url: ${{ env.GITHUB_SERVER_URL }}
destination-repo: user2/destinationrepo
destination-branch: main
destination-token: ${{ secrets.DESTINATION_TOKEN }}
update: ./upgraded
close-merge: true
debug: true