Skip to content

Commit

Permalink
Exclude vendor files from automated PR
Browse files Browse the repository at this point in the history
The issue, which can be seen in [this PR](alphagov/rubocop-govuk#368), is that setup-ruby configures bundler to install gems in vendor/bundle, and this workflow just runs git adds everything.

Adding `git reset -- vendor/bundle` should exclude all of those. 

Thanks @robinjam for suggesting this fix.
  • Loading branch information
MuriloDalRi authored Apr 3, 2024
1 parent 54b094a commit f33df00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/autorelease-rubygem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ jobs:
git checkout -b $BRANCH
git add .
git reset -- vendor/bundle
git commit -m "$PR_TITLE"
git push origin $BRANCH
Expand Down

0 comments on commit f33df00

Please sign in to comment.