From 875ed8cde3ec12cfee7b3e2cf7055a03a3ba577f Mon Sep 17 00:00:00 2001 From: Nik Wolfgramm Date: Thu, 16 Apr 2026 08:12:14 +0200 Subject: [PATCH] Validate RUBYGEMS_AUTH_TOKEN in release workflow Add a check for RUBYGEMS_AUTH_TOKEN before publishing. --- .github/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 56e0ff7..bf73e20 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,6 +53,15 @@ jobs: ruby-version: '3.2' bundler-cache: true + - name: Check if RUBYGEMS_AUTH_TOKEN is set + run: | + if [ -z "${{ secrets.RUBYGEMS_AUTH_TOKEN }}" ]; then + echo 'RUBYGEMS_AUTH_TOKEN not set!' + exit 1 + else + echo 'RUBYGEMS_AUTH_TOKEN is available.' + fi + - name: Publish gem to RubyGems uses: rubygems/release-gem@v2 with: