Skip to content

Commit bfb4f95

Browse files
committed
chore: Create update-pnpm.yml
1 parent 67b1f8b commit bfb4f95

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.github/workflows/update-pnpm.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: ' 🔗 Update PNPM'
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
base:
7+
description: The Base Ref to apply the diff
8+
required: false
9+
default: 'main'
10+
11+
schedule:
12+
- cron: '0 12 * * 1'
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
update-pnpm:
19+
if: github.repository_owner == 'streetsidesoftware'
20+
runs-on: ubuntu-latest
21+
env:
22+
NEW_BRANCH: update-pnpm-${{ inputs.base || 'main' }}
23+
REF_BRANCH: ${{ inputs.base || 'main' }}
24+
PR_TYPE: ci
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v4
28+
with:
29+
ref: ${{ env.REF_BRANCH }}
30+
31+
- name: Setup
32+
uses: ./public/setup-node-pnpm
33+
34+
- name: Update PNPM
35+
run: |
36+
corepack use pnpm@latest
37+
38+
- name: Gen Body
39+
id: git-body
40+
uses: ./public/pr-body
41+
with:
42+
title: Update ALL Dependencies ${{ env.REF_BRANCH }}
43+
path: package.json
44+
45+
- name: PR
46+
uses: ./.github/actions/pr
47+
with:
48+
commit-message: 'ci: Workflow Bot -- Update PNPM'
49+
branch: ${{ env.NEW_BRANCH }}
50+
base: ${{ env.REF_BRANCH }}
51+
title: 'ci: Workflow Bot -- Update PNPM (${{ env.REF_BRANCH }})'
52+
body: ${{ steps.git-body.outputs.body }}
53+
app_id: ${{ secrets.AUTOMATION_APP_ID }}
54+
app_private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}
55+
56+
- name: Summary
57+
uses: streetsidesoftware/actions/public/summary@v1
58+
with:
59+
text: ${{ steps.git-body.outputs.body }}

0 commit comments

Comments
 (0)