We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a2e424 commit c4aa0e0Copy full SHA for c4aa0e0
1 file changed
.github/workflows/ci.yml
@@ -15,10 +15,12 @@ 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
21
- id: is-released
22
run: |
- if gh release view ${{ steps.get-version.outputs.VERSION }} &> /dev/null ; then
23
+ if gh release view ${{ steps.get-version.outputs.VERSION }} --json tagName > /dev/null 2>&1; then
24
echo "released=true" >> "$GITHUB_OUTPUT"
25
else
26
echo "released=false" >> "$GITHUB_OUTPUT"
0 commit comments