File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 66 pull_request :
77 branches : [master]
88 schedule :
9- - cron : ' 0 2 * * *'
9+ - cron : ' 0 16 * * *'
1010 workflow_dispatch :
1111
1212jobs :
2929 - name : Setup Node.js
3030 uses : actions/setup-node@v4
3131 with :
32- node-version : ' 22 '
32+ node-version : 22
3333
3434 - name : Install esbuild
3535 run : npm i -g esbuild@${{ env.ESBUILD_VERSION }}
@@ -122,6 +122,11 @@ jobs:
122122 path : ' artifacts/sharp-x64/nodejs/node_modules/sharp/package.json'
123123 prop_path : ' version'
124124
125+ - name : Skip if no version change
126+ if : ${{ env.sharpver == steps.version.outputs.prop }}
127+ run : echo "🧠 No Sharp update detected. Skipping release."
128+
129+ # (only continue if version actually changed)
125130 - name : Update version.txt
126131 if : ${{ env.sharpver != steps.version.outputs.prop }}
127132 run : echo "${{ steps.version.outputs.prop }}" > version.txt
@@ -145,5 +150,5 @@ jobs:
145150 if : ${{ env.sharpver != steps.version.outputs.prop }}
146151 run : |
147152 curl -X POST -H "Content-Type: application/json" \
148- -d "{\"content\":\"🧠 Sharp Lambda Layer updated to \`${{ steps.version.outputs.prop }}\`\"}" \
153+ -d "{\"content\":\"🧠 Sharp Lambda Layer updated!\nVersion: \`${{ steps.version.outputs.prop }}\`\n<https://github.com/${{ github.repository }}/releases/tag/${{ steps.version.outputs.prop }}>\"}"
149154 "${{ secrets.DISCORD_WEBHOOK_URL }}"
You can’t perform that action at this time.
0 commit comments