do nothing if nothing is pushed

Fixes: https://code.forgejo.org/actions/cascading-pr/issues/6
This commit is contained in:
Earl Warren 2023-10-22 18:26:56 +02:00
parent bc706e42b6
commit a449a6e6f5
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
6 changed files with 104 additions and 44 deletions

View 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

View file

@ -0,0 +1 @@
originrepo