diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index 6e9fc91..fe0e304 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -11,12 +11,21 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 + with: + fetch-depth: 2 + + - uses: marceloprado/has-changed-path@v1 + id: changed-version + if: github.ref == 'refs/heads/master' && github.event_name == 'push' + with: + paths: lib/miga/version.rb - name: Release Gem - if: contains(github.ref, 'refs/tags/v') uses: cadwallion/publish-rubygems-action@master env: GITHUB_TOKEN: ${{secrets.BUNDLE_GITHUB__COM}} RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_BUMP_RELEASE}} - RELEASE_COMMAND: bundle exec rake release + RELEASE_COMMAND: | + gem install bundler + bundle exec rake release diff --git a/Gemfile.lock b/Gemfile.lock index 610d5a0..70a9375 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -23,7 +23,7 @@ GEM pry (~> 0.13.0) rainbow (3.0.0) rake (13.0.3) - regexp_parser (2.0.3) + regexp_parser (2.1.1) rexml (3.2.4) rspec (3.10.0) rspec-core (~> 3.10.0) @@ -38,7 +38,7 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.10.0) rspec-support (3.10.2) - rubocop (1.9.1) + rubocop (1.10.0) parallel (~> 1.10) parser (>= 3.0.0.0) rainbow (>= 2.2.2, < 4.0) @@ -81,4 +81,4 @@ DEPENDENCIES simplecov BUNDLED WITH - 2.2.7 + 2.2.11