build(deps-dev): bump the development-dependencies group across 1 dir… #17
Workflow file for this run
This file contains hidden or 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: Regenerate appraisal gemfiles | |
| concurrency: | |
| group: "${{github.workflow}}-${{github.ref}}" | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: | |
| - "dependabot/bundler/**" | |
| paths: | |
| - Gemfile | |
| - Gemfile.lock | |
| permissions: {} | |
| jobs: | |
| generate: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read # checkout the dependabot branch | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: ruby/setup-ruby@9eb537ca036ebaed86729dcb9309076e4c5c3b74 # v1.314.0 | |
| with: | |
| ruby-version: "3.4" | |
| bundler-cache: true | |
| - name: Regenerate gemfiles from Appraisals | |
| run: bundle exec appraisal generate | |
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: gemfiles | |
| path: gemfiles/ | |
| retention-days: 1 | |
| commit: | |
| needs: generate | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # push regenerated gemfiles to the dependabot branch | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | |
| with: | |
| name: gemfiles | |
| path: gemfiles/ | |
| - name: Commit regenerated gemfiles | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| run: | | |
| git add gemfiles/ | |
| if ! git diff --cached --quiet; then | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git commit -m "Regenerate appraisal gemfiles" | |
| git push "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "HEAD:${GITHUB_REF_NAME}" | |
| fi |