File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,12 @@ name: Release IPA Package
22
33on :
44 workflow_dispatch :
5+ inputs :
6+ workflow_call :
7+ description : ' To distinguish workflow_call from regular push'
8+ type : boolean
9+ required : false
10+ default : true
511 push :
612 branches :
713 - main
1016
1117jobs :
1218 check-version :
13- runs-on : ubuntu-latest
14- outputs :
15- version_changed : ${{ steps.version_check.outputs.version_changed }}
16-
19+ runs-on : ubuntu-latest
20+ outputs :
21+ version_changed : ${{ steps.version_check.outputs.version_changed }}
22+
1723 steps :
18- - name : Checkout Repository
24+ - name : Checkout Repository
1925 uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
2026 with :
2127 fetch-depth : 0
2430 .github/scripts
2531 - name : Fetch Versions
2632 id : version_check
27- env :
33+ env :
2834 BASE_BRANCH : " main~1"
2935 run : |
3036 version_changed=$(./.github/scripts/ipa_version_check.sh)
3743 permissions :
3844 contents : read
3945 id-token : write
40- if : ${{ needs.check-version.outputs.version_changed == 'true' }}
46+ if : ${{ needs.check-version.outputs.version_changed == 'true' || inputs.workflow_call }}
4147
4248 steps :
4349 - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
You can’t perform that action at this time.
0 commit comments