Bump brakeman from 6.2.1 to 6.2.2 #161
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dependabot Update Gemfile.next.lock | |
on: | |
push: | |
branches: | |
- dependabot/**/** | |
# pull_request: | |
# branches: | |
# - develop | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
pull-requests: write | |
contents: write | |
jobs: | |
dependabot: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v4 | |
- name: Extract Ruby Version | |
id: ruby_version | |
env: | |
BUNDLE_GEMFILE: Gemfile.next | |
run: | | |
major_minor_version=$(grep -A 1 "RUBY VERSION" Gemfile.next.lock | tail -n 1 | awk '{split($2,a,"[p.]"); print a[1] "." a[2]}') | |
echo "MAJOR_MINOR_VERSION=$major_minor_version" >> $GITHUB_ENV | |
- name: Setup Ruby 3 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ env.MAJOR_MINOR_VERSION }} | |
bundler-cache: true | |
env: | |
BUNDLE_GEMFILE: Gemfile.next | |
BUNDLE_FROZEN: 'false' | |
- name: Commit and push updated Gemfile.next.lock | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
if [[ -n "$(git status --porcelain)" ]]; then | |
git add Gemfile.next.lock | |
git commit -m "Update Gemfile.next.lock" | |
git push origin ${{ github.head_ref }} | |
else | |
echo "No changes to commit." | |
fi |