Skip to content

Commit ab143ef

Browse files
committed
Only update release on success
1 parent 87b64e7 commit ab143ef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/update-release-status.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
runs-on: ubuntu-22.04
2222
outputs:
2323
status: ${{ steps.set-output.outputs.status }}
24+
conclusion: ${{ steps.set-output.outputs.conclusion }}
2425
steps:
2526
- name: Checkout
2627
uses: actions/checkout@v4
@@ -113,6 +114,8 @@ jobs:
113114
--input - \
114115
/repos/$GITHUB_REPOSITORY/check-runs/$CHECK_RUN_ID
115116
117+
echo "conclusion=$conclusion" >> "$GITHUB_OUTPUT
118+
116119
- name: Set output
117120
id: set-output
118121
run: |
@@ -124,7 +127,7 @@ jobs:
124127
125128
update-release:
126129
needs: validate-check-runs
127-
if: needs.validate-check-runs.outputs.status == 'completed'
130+
if: needs.validate-check-runs.outputs.status == 'completed' && needs.validate-check-runs.outputs.conclusion == 'success'
128131
uses: ./.github/workflows/update-release.yml
129132
with:
130133
head-sha: ${{ inputs.head-sha }}

0 commit comments

Comments
 (0)