Skip to content

Commit

Permalink
chore: Create update-dependencies.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed May 15, 2024
1 parent a02e03e commit e5dd372
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
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 || github.ref_name || 'main' }}
REF_BRANCH: ${{ inputs.base || github.ref_name || 'main' }}
PR_TYPE: ci
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ env.REF_BRANCH }}

- name: Setup
uses: streetsidesoftware/actions/public/setup-node-pnpm@v1

- name: Install
run: pnpm install

- name: Update packages
run: |
pnpm up
pnpm up -r
pnpm up -r -w
- name: PR Body
id: body
uses: streetsidesoftware/actions/public/pr-body@v1
with:
title: 'Workflow Bot -- Update ALL Dependencies'
path: >-
package.json
README.md
- name: PR
uses: streetsidesoftware/actions/.github/actions/pr@v1
with:
commit-message: '${{ env.PR_TYPE }}: ${{ steps.body.outputs.title }}'
branch: ${{ env.NEW_BRANCH }}
base: ${{ env.REF_BRANCH }}
title: '${{ env.PR_TYPE }}: ${{ steps.body.outputs.title }} (${{ env.REF_BRANCH }})'
body: ${{ steps.body.outputs.body }}
app_id: ${{ secrets.AUTOMATION_APP_ID }}
app_private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}

0 comments on commit e5dd372

Please sign in to comment.