File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ name: openMINDS_dev_build_pipeline
44on :
55 push :
66 branches :
7+ - development
78 - pipeline
89 workflow_dispatch : # This triggers the workflow when a webhook is received
910 inputs :
1819
1920
2021jobs :
22+ check_vocab :
23+ runs-on : ubuntu-latest
24+ outputs :
25+ vocab_changed : ${{ steps.filter.outputs.vocab }}
26+ steps :
27+ - uses : actions/checkout@v4
28+ - uses : dorny/paths-filter@v3
29+ id : filter
30+ if : github.ref == 'refs/heads/development'
31+ with :
32+ filters : |
33+ vocab:
34+ - 'vocab/**'
35+
2136 build :
37+ needs : check_vocab
38+ if : |
39+ github.ref == 'refs/heads/pipeline' ||
40+ github.event_name == 'workflow_dispatch' ||
41+ (github.ref == 'refs/heads/development' && needs.check_vocab.outputs.vocab_changed == 'true' && github.actor != 'github-actions[bot]')
2242 runs-on : ubuntu-latest
2343 steps :
2444
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ name: openMINDS_build_pipeline
44on :
55 push :
66 branches :
7+ - main
78 - pipeline
89 workflow_dispatch : # This triggers the workflow when a webhook is received
910 inputs :
1819
1920
2021jobs :
22+ check_vocab :
23+ runs-on : ubuntu-latest
24+ outputs :
25+ vocab_changed : ${{ steps.filter.outputs.vocab }}
26+ steps :
27+ - uses : actions/checkout@v4
28+ - uses : dorny/paths-filter@v3
29+ id : filter
30+ if : github.ref == 'refs/heads/main'
31+ with :
32+ filters : |
33+ vocab:
34+ - 'vocab/**'
35+
2136 build :
37+ needs : check_vocab
38+ if : |
39+ github.ref == 'refs/heads/pipeline' ||
40+ github.event_name == 'workflow_dispatch' ||
41+ (github.ref == 'refs/heads/main' && needs.check_vocab.outputs.vocab_changed == 'true' && github.actor != 'github-actions[bot]')
2242 runs-on : ubuntu-latest
2343 steps :
2444
You can’t perform that action at this time.
0 commit comments