Skip to content

Commit

Permalink
Merge pull request #238 from block/myron/fix-gem-workflow
Browse files Browse the repository at this point in the history
Limit `update-gem-version-artifacts` to just dependabot PRs.
  • Loading branch information
myronmarston authored Feb 26, 2025
2 parents 8e3c4d6 + fdf0808 commit 56d3bb9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/update-gem-version-artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
jobs:
update-dependencies:
runs-on: ubuntu-latest
if: >-
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.actor.login == 'dependabot[bot]'
# The 'permissions' here apply to the GITHUB_TOKEN, but we'll actually be pushing with the PAT
permissions:
contents: write
Expand All @@ -35,17 +39,12 @@ jobs:
cache-version: 2

- name: Update RBS collection
run: |
bundle exec rbs collection update
git status
git diff
run: bundle exec rbs collection update

- name: Update gem version constraints
run: |
bundle config --local deployment false
script/update_gem_constraints
git status
git diff
- name: Commit and push if changed
run: |
Expand Down

0 comments on commit 56d3bb9

Please sign in to comment.