@@ -19,28 +19,42 @@ jobs:
1919 - uses : ./.github/workflows/composite/setup
2020 - name : Update BUNDLED WITH in Gemfile.lock
2121 run : |
22+ echo "Remove all bundler versions except the default one"
23+ gem uninstall bundler -a -x
24+
25+ ruby -v
26+ bundler -v
27+
28+ # We are modifying the Gemfile.lock, thus have to set frozen to false.
29+ bundle config set frozen false
30+
2231 BUNDLER_VERSION=$(ruby -rbundler -e 'puts Bundler::VERSION')
32+
33+ echo "Update bundler version in Gemfile.lock"
2334 bundle update --bundler=$BUNDLER_VERSION
24- cd docs/v3
25- bundle update --bundler=$BUNDLER_VERSION
26- - name : Check for changes
27- run : |
35+
36+ pushd docs/v3
37+ echo "Update bundler version in docs/v3/Gemfile.lock"
38+ bundle update --bundler=$BUNDLER_VERSION
39+ popd
40+
41+ # Don't commit changes in vendor/bundle folder.
42+ echo "vendor/bundle/" >> .git/info/exclude
43+
2844 if git diff --quiet; then
2945 echo "changes=false" >> $GITHUB_ENV
3046 else
3147 echo "changes=true" >> $GITHUB_ENV
3248 fi
33- - name : Commit changes
34- if : env.changes == 'true'
35- run : |
36- git config user.name "ari-wg-gitbot"
37- git config user.email "app-runtime-interfaces@cloudfoundry.org"
38- git add .
39- git commit -m "Bump Bundler Version in Gemfile.lock"
4049 - name : Create or Update Pull Request
4150 if : env.changes == 'true'
4251 uses : peter-evans/create-pull-request@v7
4352 with :
4453 branch : bump-bundler-version-${{ github.ref_name }}
4554 title : " Automated Bump of Bundler Version in Gemfile.lock"
55+ body : |
56+ This PR updates Gemfile.lock and docs/v3/Gemfile.lock to use the default Bundler version.
4657 labels : " needs_review"
58+ commit-message : " Bump Bundler Version in Gemfile.lock and docs/v3/Gemfile.lock"
59+ committer : " ari-wg-gitbot <app-runtime-interfaces@cloudfoundry.org>"
60+ author : " ari-wg-gitbot <app-runtime-interfaces@cloudfoundry.org>"
0 commit comments