π Update Dependencies Main #108
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
name: " π Update Dependencies Main" | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "**/package.json" | |
- "**/pnpm-lock.yaml" | |
- "scripts/**" | |
workflow_dispatch: | |
schedule: | |
- cron: "0 12 * * 0" | |
permissions: | |
contents: read | |
jobs: | |
update-dependencies: | |
if: github.repository_owner == 'streetsidesoftware' | |
runs-on: ubuntu-latest | |
env: | |
NEW_BRANCH: "update-dependencies-main" | |
REF_BRANCH: main | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ env.REF_BRANCH }} | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Update | |
run: | | |
pnpm -r up | |
- name: Install | |
run: | | |
pnpm i | |
# Catch any new dictionaries and add them to the config. | |
- name: Update Release-Please packages | |
run: ./scripts/gen-release-please-config.sh | |
- name: Lint | |
run: | | |
pnpm lint | |
- name: PR Body | |
id: body | |
uses: streetsidesoftware/actions/public/pr-body@v1 | |
with: | |
title: Update Dependencies | |
path: package.json | |
- name: PR | |
uses: streetsidesoftware/actions/.github/actions/pr@v1 | |
with: | |
commit-message: "ci: Workflow Bot -- Update ALL Dependencies" | |
branch: ${{ env.NEW_BRANCH }} | |
base: ${{ env.REF_BRANCH }} | |
body: ${{ steps.body.outputs.body }} | |
app_id: ${{ secrets.AUTOMATION_APP_ID }} | |
app_private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }} |