Other workflow #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Other workflow | |
| on: | |
| push: | |
| branches: | |
| - 'non-existent' | |
| workflow_dispatch: | |
| jobs: | |
| create-pr: | |
| if: github.event_name == 'push' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: master | |
| fetch-depth: 0 | |
| - name: Reset master branch | |
| run: | | |
| git fetch origin non-existent:non-existent | |
| git reset --hard non-existent | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e | |
| with: | |
| title: 'New PR' | |
| body: 'Some meaningless update' | |
| branch: 'non-existent' | |
| commit-message: 'no actual update' | |
| delete-branch: true |