Skip to content

🚨 [security] Update activesupport 7.0.7 β†’ 7.0.7.2 (minor) (#119) #188

🚨 [security] Update activesupport 7.0.7 β†’ 7.0.7.2 (minor) (#119)

🚨 [security] Update activesupport 7.0.7 β†’ 7.0.7.2 (minor) (#119) #188

Workflow file for this run

---
name: Pipeline
on:
push:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-22.04
strategy:
matrix:
ruby-version: [3.2.2]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby-version }}
- name: Lint
run: bundle exec rubocop
- name: Test
run: bundle exec rspec
# Separate `release` job from `build`, as we only want release to be run once
# and not run for each ruby version in the matrix:
release:
name: Release
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
needs: build
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Release the gem
run: |
mkdir -p ~/.gem
cat << EOF > ~/.gem/credentials
---
:github: Bearer ${GITHUB_TOKEN}
:rubygems_api_key: ${RUBYGEMS_API_KEY}
EOF
chmod 0600 ~/.gem/credentials
git config user.email "[email protected]"
git config user.name "Wolfbot"
bundle exec rake release
env:
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}