Skip to content

Commit

Permalink
Do not trigger CI workflow when pushing release tags
Browse files Browse the repository at this point in the history
This is not necessary, and wastes action runs.
  • Loading branch information
AlexTMjugador committed Jul 25, 2023
1 parent 2621b90 commit 8bcead2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/oxipng.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
runs-on: ${{ matrix.os }}
timeout-minutes: 60

# Prevent in-repo PRs from running the same jobs twice
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
# Prevent tags and in-repo PRs from triggering this workflow more than once for a commit
if: github.ref_type != 'tag' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork)

strategy:
fail-fast: false
Expand Down Expand Up @@ -157,8 +157,8 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30

# Prevent in-repo PRs from running the same jobs twice
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
# Prevent tags and in-repo PRs from triggering this workflow more than once for a commit
if: github.ref_type != 'tag' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork)

steps:
- name: Checkout source
Expand Down

0 comments on commit 8bcead2

Please sign in to comment.