Skip to content

Commit a7884cb

Browse files
committed
debug, maxtrix build, test matrix as well - v10
1 parent eb1f38d commit a7884cb

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/build-layers.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
pull_request:
77
branches: [master]
88
schedule:
9-
- cron: '0 2 * * *'
9+
- cron: '0 16 * * *'
1010
workflow_dispatch:
1111

1212
jobs:
@@ -29,7 +29,7 @@ jobs:
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 }}"

0 commit comments

Comments
 (0)