Skip to content

Commit 737accc

Browse files
authored
skip duplicate actions (#62)
1 parent 1c3450d commit 737accc

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,19 @@ on:
1313
- 'README.md'
1414
- '.github/workflows/TagBot.yml'
1515
jobs:
16+
pre_job:
17+
# continue-on-error: true # Uncomment once integration is finished
18+
runs-on: ubuntu-latest
19+
# Map a step output to a job output
20+
outputs:
21+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
22+
steps:
23+
- id: skip_check
24+
uses: fkirc/skip-duplicate-actions@v5
25+
1626
test:
27+
needs: pre_job
28+
if: needs.pre_job.outputs.should_skip != 'true'
1729
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
1830
runs-on: ${{ matrix.os }}
1931
strategy:

.github/workflows/downstream.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,19 @@ on:
1414
- '.github/workflows/TagBot.yml'
1515

1616
jobs:
17+
pre_job:
18+
# continue-on-error: true # Uncomment once integration is finished
19+
runs-on: ubuntu-latest
20+
# Map a step output to a job output
21+
outputs:
22+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
23+
steps:
24+
- id: skip_check
25+
uses: fkirc/skip-duplicate-actions@v5
26+
1727
test:
28+
needs: pre_job
29+
if: needs.pre_job.outputs.should_skip != 'true'
1830
name: ${{ matrix.package.group }}/${{ matrix.package.repo }}/${{ matrix.julia-version }}
1931
runs-on: ${{ matrix.os }}
2032
strategy:

0 commit comments

Comments
 (0)