1- name : Compress images
1+ name : " Compress images"
22on :
33 pull_request : # PRs with image (but we can't push changes back to other forks)
44 paths :
@@ -19,25 +19,25 @@ jobs:
1919 github.repository == 'dnnsoftware/Dnn.Platform' &&
2020 (github.event_name != 'pull_request' ||
2121 github.event.pull_request.head.repo.full_name == github.repository)
22- name : calibreapp/image-actions
23- runs-on : ubuntu-latest
22+ name : " calibreapp/image-actions"
23+ runs-on : " ubuntu-latest"
2424 steps :
25- - name : Checkout Repo
26- uses : actions/checkout@v6
25+ - name : " Checkout Repo"
26+ uses : " actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd " # v6.0.2
2727
28- - name : Compress Images
29- id : compress_images
30- uses : calibreapp/image-actions@1.4.1
28+ - name : " Compress Images"
29+ id : " compress_images"
30+ uses : " calibreapp/image-actions@f32575787d333b0579f0b7d506ff03be63a669d1 " # 1.4.1
3131 with :
3232 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3333 compressOnly : ${{ github.event_name != 'pull_request' }} # For non-Pull Requests, run in compressOnly mode and we'll PR after.
3434
35- - name : Create Pull Request
35+ - name : " Create Pull Request"
3636 if : | # If it's not a Pull Request then commit any changes as a new PR.
3737 github.event_name != 'pull_request' && steps.compress_images.outputs.markdown != ''
38- uses : peter-evans/create-pull-request@v8
38+ uses : " peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 " # v8.1.0
3939 with :
40- title : Auto Compress Images
41- branch-suffix : timestamp
42- commit-message : Compress Images
40+ title : " Auto Compress Images"
41+ branch-suffix : " timestamp"
42+ commit-message : " Compress Images"
4343 body : ${{ steps.compress_images.outputs.markdown }}
0 commit comments