-
Notifications
You must be signed in to change notification settings - Fork 12.8k
38 lines (33 loc) · 1.16 KB
/
collections-renames.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Setup Ruby
uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1
with:
bundler-cache: true
- name: Test collection with autofix and commit changes
uses: technote-space/create-pr-action@91114507cf92349bec0a9a501c2edf1635427bc5 # 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 ✨"