-
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (58 loc) · 1.7 KB
/
update-dependencies.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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 }}