Check and update renamed/removed collection items #1363
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: Check and update renamed/removed collection items | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 * * * *" # every hour | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'github' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Test collection with autofix and commit changes | |
uses: technote-space/create-pr-action@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
AUTOCORRECT_RENAMED_REPOS: 1 | |
with: | |
EXECUTE_COMMANDS: | | |
bundle exec rake collections | |
COMMIT_MESSAGE: '✨ Autofixing renamed/removed collection items ✨' | |
COMMIT_NAME: 'GitHub Actions' | |
COMMIT_EMAIL: '[email protected]' | |
PR_BRANCH_NAME: 'update-collections-${PR_ID}' | |
PR_TITLE: '✨ Autofixing renamed/removed collection items ✨' |