π Update Dependencies Main #1101
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 | |
workflow_dispatch: | |
inputs: | |
base: | |
description: The Base Ref to apply the diff | |
required: false | |
default: 'main' | |
schedule: | |
- cron: '0 12 * * *' | |
permissions: | |
contents: read | |
jobs: | |
update-dependencies: | |
if: github.repository_owner == 'streetsidesoftware' | |
runs-on: ubuntu-latest | |
env: | |
NEW_BRANCH: update-dependencies-${{ inputs.base || 'main' }} | |
REF_BRANCH: ${{ inputs.base || 'main' }} | |
PR_TYPE: ci | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ env.REF_BRANCH }} | |
- name: Corepack Enable | |
run: corepack enable | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'pnpm' | |
- name: Install | |
run: pnpm install | |
- name: Update packages | |
run: | | |
pnpm up | |
pnpm -r up | |
- name: Update Readme | |
run: | | |
pnpm build:readme | |
- name: Gen Body | |
run: | | |
echo 'git_body<<DIFF' >> $GITHUB_ENV | |
git --no-pager diff --compact-summary >> $GITHUB_ENV | |
echo 'DIFF' >> $GITHUB_ENV | |
- name: PR | |
uses: streetsidesoftware/actions/.github/actions/pr@v1 | |
with: | |
commit-message: '${{ env.PR_TYPE }}: Workflow Bot -- Update ALL Dependencies' | |
branch: ${{ env.NEW_BRANCH }} | |
base: ${{ env.REF_BRANCH }} | |
title: '${{ env.PR_TYPE }}: Workflow Bot -- Update ALL Dependencies (${{ env.REF_BRANCH }})' | |
body: ${{ env.git_body }} | |
app_id: ${{ secrets.AUTOMATION_APP_ID }} | |
app_private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }} |