File tree Expand file tree Collapse file tree 2 files changed +23
-25
lines changed Expand file tree Collapse file tree 2 files changed +23
-25
lines changed Original file line number Diff line number Diff line change 44 branches :
55 - master
66 pull_request :
7- paths :
8- - motoko/counter/**
9- - .github/workflows/provision-darwin.sh
10- - .github/workflows/provision-linux.sh
11- - .github/workflows/motoko-counter-example.yaml
127concurrency :
138 group : ${{ github.workflow }}-${{ github.ref }}
149 cancel-in-progress : true
1510jobs :
11+ # JOB to run change detection
12+ changes :
13+ runs-on : ubuntu-latest
14+ permissions :
15+ pull-requests : read
16+ # Set job outputs to values from filter step
17+ outputs :
18+ sources : ${{ steps.filter.outputs.sources }}
19+ steps :
20+ # For pull requests it's not necessary to checkout the code
21+ - uses : dorny/paths-filter@v3
22+ id : filter
23+ with :
24+ filters : |
25+ sources:
26+ - motoko/counter/**
27+ - .github/workflows/provision-darwin.sh
28+ - .github/workflows/provision-linux.sh
29+ - .github/workflows/motoko-counter-example.yaml
1630 motoko-counter-example-darwin :
31+ needs : changes
32+ if : ${{ needs.changes.outputs.sources == 'true' }}
1733 runs-on : macos-12
1834 steps :
1935 - uses : actions/checkout@v1
2642 make test
2743 popd
2844 motoko-counter-example-linux :
45+ needs : changes
46+ if : ${{ needs.changes.outputs.sources == 'true' }}
2947 runs-on : ubuntu-20.04
3048 steps :
3149 - uses : actions/checkout@v1
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments