-
-
Notifications
You must be signed in to change notification settings - Fork 118
94 lines (77 loc) · 2.26 KB
/
update-dependencies.yml
File metadata and controls
94 lines (77 loc) · 2.26 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: ' 🔗 Update Dependencies'
on:
push:
branches:
- main
paths:
- '**/package.json'
- '*-lock.yaml'
schedule:
- cron: '0 12 * * 0'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
NEW_BRANCH: 'update-dependencies-main'
REF_BRANCH: main
jobs:
update-dependencies:
if: github.repository_owner == 'streetsidesoftware'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
ref: ${{ env.REF_BRANCH }}
- name: Setup Node and Pnpm
uses: ./.github/actions/setup-node
- name: Update Root
run: |
pnpm up
pnpm -r up
- name: Install
run: |
pnpm ib
- name: Apply and new Lint rules
continue-on-error: true
run: pnpm run lint
- name: PR
uses: ./.github/actions/pr
with:
commit-message: 'ci: Workflow Bot -- Update ALL Dependencies'
branch: ${{ env.NEW_BRANCH }}
app_id: ${{ secrets.AUTOMATION_APP_ID }}
app_private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}
base: ${{ env.REF_BRANCH }}
body: |
## Update ALL Dependencies (${{ env.REF_BRANCH }})
title: 'ci: Workflow Bot -- Update ALL Dependencies (${{ env.REF_BRANCH }})'
update-yarn:
if: github.repository_owner == 'streetsidesoftware'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
ref: ${{ env.REF_BRANCH }}
- name: Setup Node and Pnpm
uses: ./.github/actions/setup-node
- name: Install
run: pnpm install
- name: Update Yarn
run: |
pnpm run update-yarn
- name: PR
uses: ./.github/actions/pr
with:
commit-message: 'ci: Workflow Bot -- Update Yarn'
branch: 'update-yarn-main'
app_id: ${{ secrets.AUTOMATION_APP_ID }}
app_private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}
base: ${{ env.REF_BRANCH }}
body: |
## Update Yarn (${{ env.REF_BRANCH }})
title: 'ci: Workflow Bot -- Update Yarn (${{ env.REF_BRANCH }})'