Skip to content

Commit

Permalink
fix: release ci
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Jun 27, 2024
1 parent cfe5356 commit b1cc893
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,12 @@ jobs:
- name: Check if Release Exists
id: check_release
run: |
if gh release view ${{ github.ref }}; then
echo "Release already exists"
exit 0
fi
gh release view ${{ github.ref }} || echo "release_not_found=true" >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PAT }}

- name: Create Release
if: steps.check_release.outputs.release_exists == 'false'
if: env.release_not_found == 'true'
id: create_release
uses: actions/create-release@v1
env:
Expand Down

0 comments on commit b1cc893

Please sign in to comment.