Skip to content

Commit

Permalink
prevent rerun
Browse files Browse the repository at this point in the history
  • Loading branch information
austenstone committed Sep 29, 2023
1 parent 4197670 commit 4e046b8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/actions/prevent-reruns/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Prevent Re-run
description: Prevents re-run of a workflow

runs:
using: "composite"

steps:
- if: github.run_attempt != '1'
shell: bash
run: |
gh api -X POST /repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/cancel
sleep 60

0 comments on commit 4e046b8

Please sign in to comment.