mirror of
https://code.forgejo.org/actions/cascading-pr.git
synced 2025-06-30 05:43:44 +00:00
do nothing if nothing is pushed
Fixes: https://code.forgejo.org/actions/cascading-pr/issues/6
This commit is contained in:
parent
bc706e42b6
commit
a449a6e6f5
6 changed files with 104 additions and 44 deletions
25
tests/originrepo-do-nothing/.forgejo/workflows/test.yml
Normal file
25
tests/originrepo-do-nothing/.forgejo/workflows/test.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
name: test
|
||||
on:
|
||||
pull_request:
|
||||
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-do-nothing
|
||||
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: /bin/true
|
||||
debug: true
|
1
tests/originrepo-do-nothing/README
Normal file
1
tests/originrepo-do-nothing/README
Normal file
|
@ -0,0 +1 @@
|
|||
originrepo
|
Loading…
Add table
Add a link
Reference in a new issue