Skip to content

Commit

Permalink
Merge pull request #9 from sacconazzo:develop
Browse files Browse the repository at this point in the history
fix release alredy exists
  • Loading branch information
sacconazzo authored Aug 15, 2024
2 parents 33506d2 + a821d5b commit 7ffd755
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Check New Release

on:
push:
Expand All @@ -10,15 +10,17 @@ permissions:

jobs:
release:
name: Release pushed tag
name: Release on pushed Tag
runs-on: ubuntu-22.04
steps:
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
gh release list --repo="$GITHUB_REPOSITORY" \
| grep -q "$tag" && echo "Release $tag already exists" \
|| gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="$Release ${tag}" \
--generate-notes

0 comments on commit 7ffd755

Please sign in to comment.