Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: skip duplicate jobs across branches, don't run on tag pushes
Browse files Browse the repository at this point in the history
Sagnac committed Oct 23, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 3f66d5b commit fb4a0ee
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -2,6 +2,8 @@ name: Test

on:
push:
branches:
- '**'
pull_request:
workflow_dispatch:

@@ -14,7 +16,19 @@ permissions:
contents: read

jobs:
pre_job:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
concurrent_skipping: 'same_content_newer'
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
test:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
name: ${{ matrix.version == '1' && 'stable' || matrix.version }} - ${{ github.event_name }}
runs-on: ubuntu-latest
timeout-minutes: 60

0 comments on commit fb4a0ee

Please sign in to comment.