diff --git a/.github/workflows/gem-release.yml b/.github/workflows/gem-release.yml index 48ce11e..921bf27 100644 --- a/.github/workflows/gem-release.yml +++ b/.github/workflows/gem-release.yml @@ -1,13 +1,14 @@ name: Gem Release on: - push: - branches: [ "main" ] pull_request: branches: [ "main" ] + types: + - closed jobs: - build: + if_merged: + if: github.event.pull_request.merged == true runs-on: ubuntu-latest name: Build + Publish with Ruby ${{ matrix.ruby }} strategy: @@ -17,8 +18,9 @@ jobs: permissions: contents: read packages: write - steps: + - run: | + echo The PR was merged - uses: actions/checkout@v3 - name: Set up Ruby uses: ruby/setup-ruby@v1