File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 1414 - cron : ' 0 0 * * *'
1515 workflow_dispatch :
1616
17+ env :
18+ BUILD_LABEL : " run release build"
19+
1720jobs :
21+ check-pr-labels :
22+ outputs :
23+ run_release_workflow : ${{ steps.gen_output.outputs.apt_tools }}
24+ steps :
25+ - if : ${{ github.event_name == 'pull_request' }}
26+ run : |
27+ echo run_release_workflow="$(if gh api --jq '.labels.[].name' /repos/${{ github.repository }}/pulls/${{ github.event.number }} | grep --quiet '^${{ env.BUILD_LABEL }}$' ; then echo "yes" ; else echo "no")" >> "$GITHUB_OUTPUT"
28+
29+ - if : ${{ github.event_name != 'pull_request' }}
30+ run : |
31+ echo run_release_workflow="yes" >> "$GITHUB_OUTPUT"
32+
1833 release-workflow :
34+ needs : ["check-pr-labels"]
35+ if : ${{ needs.check-pr-labels.outputs.run_release_workflow == 'yes' }}
1936 uses : ./.github/workflows/reusable-release.yml
2037 with :
2138 branches : ' ["${{ github.ref }}"]'
You can’t perform that action at this time.
0 commit comments