From f342e0b461d2682887c703e45aee72513ea4e9cc Mon Sep 17 00:00:00 2001 From: Chris Oliver Date: Sun, 28 Apr 2024 12:36:15 -0500 Subject: [PATCH] Update publish gem action --- .github/workflows/ci.yml | 1 + .github/workflows/publish_gem.yml | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2ca03c5..43f255e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,7 @@ on: push: branches: - main + workflow_call: jobs: sqlite: diff --git a/.github/workflows/publish_gem.yml b/.github/workflows/publish_gem.yml index cd6faad..32b0368 100644 --- a/.github/workflows/publish_gem.yml +++ b/.github/workflows/publish_gem.yml @@ -8,7 +8,11 @@ on: type: string jobs: + test: + uses: ./.github/workflows/ci.yml + push: + needs: test runs-on: ubuntu-latest permissions: @@ -27,9 +31,8 @@ jobs: - name: Update version run: | sed -i 's/".*"/"${{ inputs.version }}"/' lib/noticed/version.rb - bundle config set frozen false + bundle config set --local deployment 'false' bundle - bundle exec appraisal git config user.name 'GitHub Actions' git config user.email github-actions@github.com git add Gemfile.lock gemfiles lib