File tree Expand file tree Collapse file tree 4 files changed +19
-12
lines changed
Expand file tree Collapse file tree 4 files changed +19
-12
lines changed Original file line number Diff line number Diff line change 1616 - ' reinstall-cmake.sh'
1717 - ' VERSION'
1818
19+ permissions :
20+ contents : read
21+ packages : write
1922
2023env :
2124 REGISTRY : ghcr.io
2225 IMAGE_NAME : ${{ github.repository }}
2326
2427jobs :
2528 build-and-push-image :
26- if : ${{github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true}}
29+ if : |
30+ github.event_name == 'workflow_dispatch' ||
31+ (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
2732 runs-on : ubuntu-latest
28- permissions :
29- contents : read
30- packages : write
3133
3234 steps :
3335 - name : Checkout repository
Original file line number Diff line number Diff line change 1717 - ' reinstall-cmake.sh'
1818 - ' VERSION'
1919
20+ permissions :
21+ contents : read
22+ packages : write
2023
2124env :
2225 REGISTRY : ghcr.io
2326 IMAGE_NAME : ${{ github.repository }}
2427
2528jobs :
2629 build-and-push-image :
27- if : ${{github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true}}
30+ if : |
31+ github.event_name == 'workflow_dispatch' ||
32+ (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
2833 runs-on : ubuntu-latest
29- permissions :
30- contents : read
31- packages : write
3234
3335 steps :
3436 - name : Checkout repository
Original file line number Diff line number Diff line change 11name : Optimize Docs Images
22
33on :
4+ workflow_dispatch :
45 pull_request :
56 branches : ["main","devel"]
67 types : [closed]
910
1011jobs :
1112 optimize-images :
12- if : ${{github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true}}
13+ if : |
14+ github.event_name == 'workflow_dispatch' ||
15+ (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
1316 runs-on : ubuntu-latest
1417
1518 steps :
Original file line number Diff line number Diff line change 44 schedule :
55 - cron : ' 0 0 1,15 * *'
66
7+ permissions :
8+ contents : read
9+ packages : write
710
811env :
912 REGISTRY : ghcr.io
1215jobs :
1316 build-and-push-image :
1417 runs-on : ubuntu-latest
15- permissions :
16- contents : read
17- packages : write
1818 strategy :
1919 matrix :
2020 branch : [main, devel]
You can’t perform that action at this time.
0 commit comments