Skip to content

Check and update renamed/removed collection items #36647

Check and update renamed/removed collection items

Check and update renamed/removed collection items #36647

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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup Ruby
uses: ruby/setup-ruby@a0102e0972be65f351c307e2d64b9314a57c8073 # v1.324.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@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
commit-message: "✨ Autofixing renamed/removed collection items ✨"
committer: "github-actions[bot] <actions@github.com>"
branch: update-collections
title: "✨ Autofixing renamed/removed collection items ✨"