File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 schedule :
55 - cron : " 0 4 * * *"
66
7- # TODO: Use workflow dispatch for testing manually. Should only enable schedule run when merging the PR
8- # on:
7+ # TODO: Use workflow dispatch for testing manually. Can be removed before merging the PR
98 workflow_dispatch :
109 inputs :
1110 environment :
@@ -616,11 +615,12 @@ jobs:
616615 GITHUB_ACTOR : ${{ github.actor }}
617616 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
618617
619- # TODO: Alert run with condition github.event.inputs.alerts == 'true' should be changed to always() when PR is ready to merge
618+ # TODO: alert job condition should be changed to always() before PR is merged
620619 alert :
621620 needs : [clean-apps-image]
622621 runs-on : ubuntu-latest
623- # if: github.event.inputs.alerts == 'true' && github.ref == 'refs/heads/main'
622+ if : github.event.inputs.alerts == 'true' && github.ref == 'refs/heads/main' && github.workflow.on == 'workflow_dispatch'
623+ environment : test
624624 steps :
625625 - id : get-sha
626626 run : |
You can’t perform that action at this time.
0 commit comments