Skip to content

chore(deps): bump ad-m/github-push-action from 0.7.0 to 0.8.0 #648

chore(deps): bump ad-m/github-push-action from 0.7.0 to 0.8.0

chore(deps): bump ad-m/github-push-action from 0.7.0 to 0.8.0 #648

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 }}"