-
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: ' 🔗 Update CSpell' | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- '**/package.json' | ||
- '**/package-lock.json' | ||
workflow_dispatch: | ||
inputs: | ||
base: | ||
description: The Base Ref to apply the diff | ||
required: false | ||
default: 'main' | ||
schedule: | ||
- cron: '0 12 * * 0' | ||
|
||
env: | ||
NEW_BRANCH: "update-cspell-${{ inputs.base || 'main' }}" | ||
REF_BRANCH: ${{ inputs.base || 'main' }} | ||
|
||
jobs: | ||
update-dependencies: | ||
if: github.repository_owner == 'streetsidesoftware' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ env.REF_BRANCH }} | ||
- name: Info | ||
run: | | ||
npm -v | ||
node -v | ||
- name: Update | ||
run: | | ||
npm i | ||
npm run build | ||
npm run build:readme | ||
npm run lint | ||
npm run update-cspell | ||
npm i | ||
- name: GenBody | ||
id: body | ||
uses: streetsidesoftware/actions/public/pr-body@v1 | ||
with: | ||
title: Update ALL Dependencies | ||
path: package.json | ||
|
||
- name: PR | ||
uses: ./.github/actions/pr | ||
with: | ||
commit-message: 'ci: Update CSpell' | ||
branch: ${{ env.NEW_BRANCH }} | ||
base: ${{ env.REF_BRANCH }} | ||
title: 'fix: Update CSpell (${{ env.REF_BRANCH }})' | ||
body: ${{ steps.body.outputs.body }} | ||
app_id: ${{ secrets.AUTOMATION_APP_ID }} | ||
app_private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }} |
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