Skip to content

Commit

Permalink
Fix release duplicate tags
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan committed Dec 17, 2024
1 parent d1fb07c commit abfeedc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ permissions:

jobs:
release:
if: github.actor != 'bogdan'
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -55,7 +56,7 @@ jobs:
env:
GEM_HOST_API_KEY: ${{ secrets.JS_ROUTES_RUBYGEMS_KEY }}
run: |
echo "${GEM_HOST_API_KEY:0:16}"
echo "API Key: ${GEM_HOST_API_KEY:0:16}..."
gem push *.gem --otp ${{ github.event.inputs.otp_code }}
- name: Create GitHub Release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scripts/tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ SCRIPT_DIR=$(dirname "$(realpath "$0")")
VERSION=$($SCRIPT_DIR/version.sh)

git tag "v$VERSION" || echo "Tag already exists."
git push origin "v$VERSION"
git push origin --force --tags

0 comments on commit abfeedc

Please sign in to comment.