Skip to content

Commit fab7dc9

Browse files
authored
Merge pull request #59 from crim-ca/update-ci-no-skip-master
2 parents 3bd6a40 + 3270da4 commit fab7dc9

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.github/workflows/tests.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,24 @@ concurrency:
1515

1616
jobs:
1717
# see: https://github.com/fkirc/skip-duplicate-actions
18-
# skip_duplicate:
19-
# continue-on-error: true
20-
# runs-on: ubuntu-latest
21-
# outputs:
22-
# should_skip: ${{ steps.skip_check.outputs.should_skip && ! contains(github.ref, 'refs/tags') }}
23-
# steps:
24-
# - id: skip_check
25-
# uses: fkirc/skip-duplicate-actions@master
26-
# with:
27-
# concurrent_skipping: "same_content"
28-
# skip_after_successful_duplicate: "true"
29-
# do_not_skip: '["pull_request", "workflow_dispatch", "schedule", "release"]'
18+
skip_duplicate:
19+
continue-on-error: true
20+
runs-on: ubuntu-latest
21+
outputs:
22+
should_skip: ${{ steps.skip_duplicate.outputs.should_skip && ! contains(github.ref, 'refs/tags') && ! contains(github.ref, 'refs/heads/master') }}
23+
steps:
24+
- id: skip_check
25+
uses: fkirc/skip-duplicate-actions@master
26+
with:
27+
concurrent_skipping: "same_content_newer"
28+
skip_after_successful_duplicate: "true"
29+
do_not_skip: '["pull_request", "workflow_dispatch", "schedule", "release"]'
3030

3131
# see: https://github.com/actions/setup-python
3232
tests:
3333
# FIXME: https://github.com/fkirc/skip-duplicate-actions/issues/90
34-
#needs: skip_duplicate
35-
#if: ${{ needs.skip_duplicate.outputs.should_skip != 'true' }}
34+
needs: skip_duplicate
35+
if: ${{ needs.skip_duplicate.outputs.should_skip != 'true' }}
3636
runs-on: ${{ matrix.os }}
3737
continue-on-error: ${{ matrix.allow-failure }}
3838
env:

0 commit comments

Comments
 (0)