Skip to content

Commit a2faded

Browse files
committed
ci(actions): add 'skip-duplicate-actions' to prevent duplicate builds
1 parent d943733 commit a2faded

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,20 @@ on:
1010
- beta
1111

1212
jobs:
13+
deduplicate:
14+
runs-on: ubuntu-latest
15+
outputs:
16+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
17+
steps:
18+
- id: skip_check
19+
uses: fkirc/skip-duplicate-actions@master
20+
with:
21+
concurrent_skipping: same_content_newer
22+
1323
build:
1424
name: Build + Test + Release
1525
runs-on: ubuntu-latest
26+
if: ${{ needs.deduplicate.outputs.should_skip != 'true' }}
1627

1728
steps:
1829
- name: Get Yarn cache path

0 commit comments

Comments
 (0)