Files
test-repo/.github/workflows/cleanup-cspell.yml
T
renovate[bot] 5dc0e5c3ab chore(deps): update actions/setup-node action to v6 (#18074)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-15 02:29:44 +08:00

42 lines
1.2 KiB
YAML

name: Cleanup cspell.json
on:
workflow_dispatch:
schedule:
# “At 00:00 on day-of-month 1 in July.” https://crontab.guru/#0_0_1_7_*
- cron: "0 0 1 7 *"
permissions:
pull-requests: write
contents: write
jobs:
run:
name: Cleanup cspell.json
if: github.event_name != 'schedule' || github.repository == 'prettier/prettier'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Setup Node.js
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
cache: "yarn"
- name: Install Dependencies
run: yarn install --immutable
- name: Run script
run: node scripts/clean-cspell.js
- name: Set current date env
run: echo "CURRENT_DATE=$(date +'%Y-%m-%d')" >> "$GITHUB_ENV"
- uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
with:
commit-message: Cleanup cspell.json (${{ env.CURRENT_DATE }})
branch: automated-cleanup-cspell-${{ env.CURRENT_DATE }}
branch-suffix: timestamp
title: Cleanup cspell.json (${{ env.CURRENT_DATE }})