Skip to content

Commit

Permalink
Merge pull request #514 from Shopify/auto-dump-config
Browse files Browse the repository at this point in the history
Add config dumping workflow
  • Loading branch information
sambostock committed Mar 14, 2023
2 parents ad60495 + a743a92 commit 535abcc
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/dump-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Dump config

on: [push, pull_request]

jobs:
dump-config:
name: Dump config
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.SHOPIFY_GH_ACCESS_TOKEN }}

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.0'
bundler-cache: true

- name: Dump config
run: bundle exec rake config:dump

- name: Commit & push
uses: EndBug/add-and-commit@v9
id: push
with:
add: 'test/fixtures/full_config.yml'
default_author: github_actions
message: >
Dump full RuboCop config
This automated commit dumps the contents of the full RuboCop config.
[dependabot skip]

0 comments on commit 535abcc

Please sign in to comment.