diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3eaffd5..efc7f52 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,6 +20,7 @@ permissions: jobs: release: + if: github.actor != 'bogdan' runs-on: ubuntu-latest steps: @@ -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 diff --git a/.github/workflows/scripts/tag.sh b/.github/workflows/scripts/tag.sh index 3419651..a0360ef 100755 --- a/.github/workflows/scripts/tag.sh +++ b/.github/workflows/scripts/tag.sh @@ -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