This repository was archived by the owner on Mar 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed
Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,7 @@ name: Code CI
33on :
44 push :
55 branches :
6- # Restricting to these branches and tags stops duplicate jobs on internal
7- # PRs but stops CI running on internal branches without a PR. Delete the
8- # next 5 lines to restore the original behaviour
9- - master
10- - main
6+ - " *"
117 tags :
128 - " *"
139 pull_request :
1612 - cron : " 0 8 * * MON"
1713
1814jobs :
15+ skip_check :
16+ runs-on : ubuntu-latest
17+ outputs :
18+ should_skip : ${{ steps.skip_check.outputs.should_skip }}
19+ steps :
20+ - id : skip_check
21+ uses : fkirc/skip-duplicate-actions@v4
22+ with :
23+ concurrent_skipping : " always"
24+
1925 lint :
26+ needs : skip_check
27+ if : ${{ needs.pre_job.outputs.should_skip != 'true' }}
2028 runs-on : " ubuntu-latest"
2129 steps :
2230 - name : Checkout
2836 tox -e pre-commit,mypy
2937
3038 wheel :
39+ needs : skip_check
40+ if : ${{ needs.pre_job.outputs.should_skip != 'true' }}
3141 strategy :
3242 fail-fast : false
3343 matrix :
6171 run : pipx run --python $(which python${{ matrix.python }}) --spec dist/*.whl ${GITHUB_REPOSITORY##*/} --version
6272
6373 test :
74+ needs : skip_check
75+ if : ${{ needs.pre_job.outputs.should_skip != 'true' }}
6476 strategy :
6577 fail-fast : false
6678 matrix :
You can’t perform that action at this time.
0 commit comments