Skip to content

Commit 36bca90

Browse files
committed
deal with pre-releases ~ smarter publish
1 parent 5eec9b9 commit 36bca90

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build-layers.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,21 +203,21 @@ jobs:
203203
204204
# --- Update version.txt logic (no changes needed here) ---
205205
- name: Update version.txt for new stable release
206-
if: steps.skip_check.outputs.SKIP_RELEASE == 'false' && env.IS_PRERELEASE == 'false'
206+
if: env.SKIP_RELEASE == 'false' && env.IS_PRERELEASE == 'false'
207207
run: |
208208
echo "Updating version.txt to ${{ steps.version.outputs.prop }}"
209209
echo "${{ steps.version.outputs.prop }}" > version.txt
210210
211211
- name: Commit version.txt update
212-
if: steps.skip_check.outputs.SKIP_RELEASE == 'false' && env.IS_PRERELEASE == 'false'
212+
if: env.SKIP_RELEASE == 'false' && env.IS_PRERELEASE == 'false'
213213
uses: stefanzweifel/git-auto-commit-action@v4
214214
with:
215215
commit_message: "Update sharp to ${{ steps.version.outputs.prop }}"
216216
file_pattern: version.txt
217217

218218
# --- Create GitHub Release logic (no changes needed here, uses IS_PRERELEASE env var) ---
219219
- name: Create GitHub Release
220-
if: steps.skip_check.outputs.SKIP_RELEASE == 'false'
220+
if: env.SKIP_RELEASE == 'false'
221221
uses: softprops/action-gh-release@v1
222222
with:
223223
files: artifacts/**/*.zip
@@ -238,7 +238,7 @@ jobs:
238238

239239
# --- Notify Discord logic (no changes needed here) ---
240240
- name: Notify Discord
241-
if: steps.skip_check.outputs.SKIP_RELEASE == 'false'
241+
if: env.SKIP_RELEASE == 'false'
242242
run: |
243243
if [[ "${{ env.IS_PRERELEASE }}" == "true" ]]; then
244244
RELEASE_TYPE="Pre-release"

0 commit comments

Comments
 (0)