Skip to content

Commit 5e38c5a

Browse files
committed
Fix canary release target_commitish on gh release calls
1 parent 0f87c3a commit 5e38c5a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release-canary.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,15 @@ jobs:
140140
- name: Update rolling canary pre-release
141141
env:
142142
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
143+
SHA: ${{ github.sha }}
143144
TAG: ${{ steps.canary-meta.outputs.tag }}
144145
TITLE: ${{ steps.canary-meta.outputs.title }}
145146
NOTES_FILE: ${{ steps.canary-meta.outputs.notes_file }}
146147
run: |
147148
set -euo pipefail
148149
if gh release view "$TAG" >/dev/null 2>&1; then
149150
gh release upload "$TAG" octi-server-canary.zip --clobber
150-
gh release edit "$TAG" --title "$TITLE" --notes-file "$NOTES_FILE" --prerelease --target "$TAG"
151+
gh release edit "$TAG" --title "$TITLE" --notes-file "$NOTES_FILE" --prerelease
151152
else
152-
gh release create "$TAG" octi-server-canary.zip --title "$TITLE" --notes-file "$NOTES_FILE" --prerelease --target "$TAG"
153+
gh release create "$TAG" octi-server-canary.zip --title "$TITLE" --notes-file "$NOTES_FILE" --prerelease --target "$SHA" --verify-tag
153154
fi

0 commit comments

Comments
 (0)