File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 branches : [main]
66 schedule :
77 - cron : " 0 00,12 * * *" # Twice a day
8+ workflow_dispatch :
9+ inputs :
10+ force :
11+ description : Force rebuild and republish all image tags
12+ required : false
13+ default : false
14+ type : boolean
815
916env :
1017 IMAGE_NAME : ${{ vars.IMAGE_NAME || 'nikolaik/python-nodejs' }}
2633 - name : Generate build matrix
2734 id : set-matrix
2835 run : |
29- FORCE=$(if git log --pretty=format:"%s" HEAD^..HEAD | grep -q '\[force\]'; then echo "--force"; else echo ""; fi)
36+ FORCE=$(if [[ "${{ github.event_name }}" == "workflow_dispatch" && "${{ inputs.force }}" == "true" ]]; then echo "--force"; elif git log --pretty=format:"%s" HEAD^..HEAD | grep -q '\[force\]'; then echo "--force"; else echo ""; fi)
3037 uv run dpn $FORCE build-matrix --event ${{ github.event_name }}
3138
3239
You can’t perform that action at this time.
0 commit comments