File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,22 @@ permissions:
1313 contents : write
1414
1515jobs :
16+ check-trigger :
17+ runs-on : ubuntu-22.04
18+ steps :
19+ - name : Check if trigger is workflow_dispatch
20+ id : check_trigger
21+ run : |
22+ if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
23+ echo "::notice::Trigger is workflow_dispatch"
24+ echo "checked=1" >> $GITHUB_OUTPUT
25+ else
26+ echo "::notice::Trigger is not workflow_dispatch"
27+ fi
28+
1629 check-last-commit-tag :
30+ needs : [check-trigger]
31+ if : ${{ needs.check-trigger.outputs.checked != '1' }}
1732 runs-on : ubuntu-22.04
1833 outputs :
1934 tagged : ${{ steps.check_tag.outputs.tagged }}
3550 fi
3651
3752 toc-generator :
38- needs : [check-last-commit-tag]
53+ needs : [check-trigger, check- last-commit-tag]
3954 uses : IShix-g/Unity-GitHubActions/.github/workflows/reusable-toc-generator.yaml@main
40- if : ${{ needs.check-last-commit-tag.outputs.tagged == '1' }}
55+ if : ${{ needs.check-trigger.outputs.checked == '1' || needs.check- last-commit-tag.outputs.tagged == '1' }}
4156 secrets :
4257 BOT_APP_ID : ${{ secrets.BOT_APP_ID }}
4358 BOT_PRIVATE_KEY : ${{ secrets.BOT_PRIVATE_KEY }}
You can’t perform that action at this time.
0 commit comments