We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a2e424 commit 9d71e61Copy full SHA for 9d71e61
1 file changed
.github/workflows/ci.yml
@@ -15,10 +15,14 @@ jobs:
15
16
- id: get-version
17
run: bun repl -e "console.log('version=' + require('./package.json').version)" >> "$GITHUB_OUTPUT"
18
+
19
+ - run: gh release view ${{ steps.get-version.outputs.VERSION }} --json tagName
20
+ env:
21
+ GH_TOKEN: ${{ github.token }}
22
23
- id: is-released
24
run: |
- if gh release view ${{ steps.get-version.outputs.VERSION }} &> /dev/null ; then
25
+ if gh release view ${{ steps.get-version.outputs.VERSION }} --json tagName > /dev/null 2>&1; then
26
echo "released=true" >> "$GITHUB_OUTPUT"
27
else
28
echo "released=false" >> "$GITHUB_OUTPUT"
0 commit comments