chore(deps): bump ad-m/github-push-action from 0.7.0 to 0.8.0 #648
Workflow file for this run
This file contains 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: cancel redundant build | |
# when pull_request, both push and pull_request (synchronize) will trigger. | |
# this action sample will prevent duplicate run, but run only 1 of them. | |
on: | |
workflow_dispatch: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
cancel: | |
runs-on: ubuntu-latest | |
steps: | |
# no check for main and tag | |
- uses: rokroskar/workflow-run-cleanup-action@v0.2.2 | |
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'" | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |