Skip to content

Commit 3b7aa8a

Browse files
committed
fix: use tag_name for release detection-
1 parent fdd0b40 commit 3b7aa8a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929

3030
publish-stable:
3131
needs: release-please
32-
if: needs.release-please.outputs.release_created == 'true'
32+
# Use tag_name as the definitive indicator - if a tag exists, a release was created
33+
if: needs.release-please.outputs.tag_name != ''
3334
runs-on: ubuntu-latest
3435

3536
steps:
@@ -49,7 +50,8 @@ jobs:
4950

5051
publish-edge:
5152
needs: release-please
52-
if: needs.release-please.outputs.release_created != 'true'
53+
# Only publish edge if no tag was created (no stable release)
54+
if: needs.release-please.outputs.tag_name == ''
5355
runs-on: ubuntu-latest
5456
outputs:
5557
new_version: ${{ steps.bump_version.outputs.new_version }}
@@ -123,7 +125,7 @@ jobs:
123125
id: set-messages
124126
run: |
125127
# Determine version and result based on release type
126-
if [[ "${{ needs.release-please.outputs.release_created }}" == "true" ]]; then
128+
if [[ -n "${{ needs.release-please.outputs.tag_name }}" ]]; then
127129
VERSION="${{ needs.release-please.outputs.tag_name }}"
128130
PUBLISH_RESULT="${{ needs.publish-stable.result }}"
129131
VER_PARAM="latest"
@@ -164,7 +166,7 @@ jobs:
164166
- name: Determine Package for Cache Purge
165167
id: purge-cache
166168
run: |
167-
if [[ "${{ needs.release-please.outputs.release_created }}" == "true" ]]; then
169+
if [[ -n "${{ needs.release-please.outputs.tag_name }}" ]]; then
168170
if [[ "${{ needs.publish-stable.result }}" == "success" ]]; then
169171
echo "package=cloudinary-video-player" >> $GITHUB_OUTPUT
170172
fi

0 commit comments

Comments
 (0)