File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 11name : " Build and Publish"
22on :
33 workflow_call :
4+ workflow_dispatch :
45 workflow_run :
56 workflows : ["Run static code validation"]
67 types :
78 - completed
89jobs :
910 buildAndPublish :
1011 name : Build and Publish
11- if : ${{ github.event.workflow_run.conclusion == 'success' }}
12+ if : ${{
13+ github.event_name == 'workflow_call' ||
14+ github.event_name == 'workflow_dispatch' ||
15+ (
16+ github.event_name == 'workflow_run' &&
17+ github.event.workflow_run.conclusion == 'success' &&
18+ (
19+ contains(github.event.workflow_run.head_commit.modified, 'src/') ||
20+ contains(github.event.workflow_run.head_commit.added, 'src/')
21+ ) &&
22+ !(
23+ github.event.workflow_run.head_commit.modified == '["*.md"]' ||
24+ github.event.workflow_run.head_commit.added == '["*.md"]'
25+ )
26+ )
27+ }}
28+
1229 runs-on : ubuntu-latest
1330 container : ghcr.io/flxbl-io/sfp:${{ vars.SFP_CONTAINER_VERSION }}
1431 permissions :
You can’t perform that action at this time.
0 commit comments