Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

Commit 521d064

Browse files
authored
ci: skip duplicate/unnecessary jobs
1 parent 9270c2d commit 521d064

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

Diff for: .github/workflows/ci.yml

+17-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,24 @@ name: CI
33
on: [ push, pull_request ]
44

55
jobs:
6+
skip_check:
7+
name: Skip Check
8+
continue-on-error: true
9+
runs-on: ubuntu-latest
10+
outputs:
11+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
12+
steps:
13+
- id: skip_check
14+
uses: fkirc/skip-duplicate-actions@v4
15+
with:
16+
concurrent_skipping: 'same_content_newer'
17+
skip_after_successful_duplicate: 'true'
18+
paths_ignore: '["README.md", "LICENSE"]'
19+
620
build:
7-
name: ${{ matrix.name }}
21+
needs: skip_check
22+
name: ${{ matrix.name || 'Build' }}
23+
if: ${{ needs.skip_check.outputs.should_skip != 'true' }}
824
runs-on: ${{ matrix.os }}
925
defaults:
1026
run:

0 commit comments

Comments
 (0)