Skip to content

Commit eadace6

Browse files
authored
Merge pull request #90 from akd-io/feature/89-make-ci-cancelskip-unnecessary-workfl
Add Skip Duplicate Actions CI
2 parents 7164542 + f29628b commit eadace6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,40 @@ jobs:
1313
os: [ubuntu-latest, windows-latest, macOS-latest]
1414

1515
steps:
16+
- name: "Check Skip Duplicate Actions"
17+
id: skip_check
18+
uses: fkirc/skip-duplicate-actions@master
19+
with:
20+
cancel_others: "true"
21+
skip_after_successful_duplicate: "true"
22+
paths_ignore: '["**/README.md"]'
23+
1624
- name: "Checkout repo"
25+
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
1726
uses: actions/checkout@v2
1827

1928
- name: "Use Node ${{ matrix.node }}"
29+
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
2030
uses: actions/setup-node@v1
2131
with:
2232
node-version: ${{ matrix.node }}
2333

2434
- name: "Install dependencies (with cache)"
35+
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
2536
uses: bahmutov/npm-install@v1
2637

2738
- name: "Build"
39+
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
2840
run: yarn build
2941

3042
- name: "Check formatting"
43+
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
3144
run: yarn format:check
3245

3346
- name: "Lint"
47+
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
3448
run: yarn lint
3549

3650
- name: "Test"
51+
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
3752
run: yarn test-only

0 commit comments

Comments
 (0)