Do not trigger CI workflow when pushing release tags
This is not necessary, and wastes action runs.
This commit is contained in:
parent
1cc45346bf
commit
df0aa1e6c0
1 changed files with 4 additions and 4 deletions
8
.github/workflows/oxipng.yml
vendored
8
.github/workflows/oxipng.yml
vendored
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue