File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 66 pull_request :
77 branches : [master]
88 schedule :
9- - cron : ' 0 4 * * *'
9+ - cron : ' 0 2 * * *'
1010 workflow_dispatch :
1111
1212jobs :
@@ -107,21 +107,20 @@ jobs:
107107 with :
108108 path : artifacts
109109
110- - name : Determine previous version
111- id : current
112- run : |
113- echo "sharpver=$(cat version.txt)" >> $GITHUB_ENV
110+ - name : Read previous version
111+ id : previous
112+ run : echo "sharpver=$(cat version.txt)" >> $GITHUB_ENV
114113
115- - name : Extract new version
114+ - name : Get new version
116115 id : version
117116 uses : notiz-dev/github-action-json-property@release
118117 with :
119- path : ' package.json'
120- prop_path : ' dependencies.sharp '
118+ path : ' artifacts/sharp-x64/nodejs/node_modules/sharp/ package.json'
119+ prop_path : ' version '
121120
122121 - name : Update version.txt
123122 if : ${{ env.sharpver != steps.version.outputs.prop }}
124- run : echo ${{ steps.version.outputs.prop }} > version.txt
123+ run : echo " ${{ steps.version.outputs.prop }}" > version.txt
125124
126125 - name : Commit version.txt
127126 uses : stefanzweifel/git-auto-commit-action@v4
@@ -143,4 +142,4 @@ jobs:
143142 run : |
144143 curl -X POST -H "Content-Type: application/json" \
145144 -d "{\"content\":\"🧠 Sharp Lambda Layer updated to \`${{ steps.version.outputs.prop }}\`\"}" \
146- "${{ secrets.DISCORD_WEBHOOK_URL }}"
145+ "${{ secrets.DISCORD_WEBHOOK_URL }}"
You can’t perform that action at this time.
0 commit comments