Skip to content

Commit

Permalink
Only create release if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
jdblischak committed Oct 2, 2023
1 parent fd986c5 commit b355b07
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,15 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Create release
run: gh release create $(date +%Y-%m-%d)
run: |
the_date=$(date +%Y-%m-%d)
if ! gh release list | grep -q $the_date
then
echo "Creating new release: $the_date"
gh release create $the_date
else
echo "Release already exists: $the_date"
fi
upload-libtiledb:
runs-on: ubuntu-latest
needs: [create-release, libtiledb]
Expand Down

0 comments on commit b355b07

Please sign in to comment.