Skip to content

Check and update renamed/removed collection items #34433

Check and update renamed/removed collection items

Check and update renamed/removed collection items #34433

name: Check and update renamed/removed collection items
on:
workflow_dispatch:
schedule:
- cron: "0 * * * *" # every hour
permissions:
contents: read
jobs:
update:
permissions:
pull-requests: write
contents: write
runs-on: ubuntu-latest
if: github.repository_owner == 'github'
steps:
- uses: actions/checkout@v6.0.3
- name: Setup Ruby
uses: ruby/setup-ruby@89f90524b88a01fe6e0b732220432cc6142926af # v1.313.0
with:
bundler-cache: true
- name: Test collections and modify with changes
env:
AUTOCORRECT_RENAMED_REPOS: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: bundle exec rake collections
- name: Commit changes and open PR
id: cpr
uses: peter-evans/create-pull-request@v8
with:
commit-message: "✨ Autofixing renamed/removed collection items ✨"
committer: "github-actions[bot] <actions@github.com>"
branch: update-collections
title: "✨ Autofixing renamed/removed collection items ✨"