Skip to content

πŸ”— Update Dependencies Main #64

πŸ”— Update Dependencies Main

πŸ”— Update Dependencies Main #64

name: ' πŸ”— Update Dependencies Main'
on:
push:
branches:
- main
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@v3
with:
ref: ${{ env.REF_BRANCH }}
- name: Setup
uses: ./.github/actions/setup
- name: Update
run: |
pnpm up
- name: Install
run: |
pnpm i --no-frozen-lockfile
- name: Git Summary
run: |
echo 'git_summary<<DIFF' >> $GITHUB_ENV
git --no-pager diff --compact-summary >> $GITHUB_ENV
echo 'DIFF' >> $GITHUB_ENV
- name: Gen Body
id: body
uses: ./.github/actions/output
with:
value: |
## Update Dependencies
```
${{ env.git_summary }}
```
- name: Show Body
env:
BODY: ${{ steps.body.outputs.value }}
run: |
echo "$BODY"
- name: Create Pull Request
uses: ./.github/actions/pr
with:
commit-message: 'ci: Workflow Bot -- Update ALL Dependencies'
branch: ${{ env.NEW_BRANCH }}
base: ${{ env.REF_BRANCH }}
title: 'ci: Workflow Bot -- Update ALL Dependencies (${{ env.REF_BRANCH }})'
body: ${{ steps.body.outputs.value }}
app_id: ${{ secrets.AUTOMATION_APP_ID }}
app_private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}