Skip to content

Commit abfeedc

Browse files
committed
Fix release duplicate tags
1 parent d1fb07c commit abfeedc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ permissions:
2020

2121
jobs:
2222
release:
23+
if: github.actor != 'bogdan'
2324
runs-on: ubuntu-latest
2425

2526
steps:
@@ -55,7 +56,7 @@ jobs:
5556
env:
5657
GEM_HOST_API_KEY: ${{ secrets.JS_ROUTES_RUBYGEMS_KEY }}
5758
run: |
58-
echo "${GEM_HOST_API_KEY:0:16}"
59+
echo "API Key: ${GEM_HOST_API_KEY:0:16}..."
5960
gem push *.gem --otp ${{ github.event.inputs.otp_code }}
6061
6162
- name: Create GitHub Release

.github/workflows/scripts/tag.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ SCRIPT_DIR=$(dirname "$(realpath "$0")")
55
VERSION=$($SCRIPT_DIR/version.sh)
66

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

0 commit comments

Comments
 (0)