-
Notifications
You must be signed in to change notification settings - Fork 3
58 lines (48 loc) Β· 1.34 KB
/
update.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
name: Update chains config
on:
schedule:
- cron: '0 * * * *'
workflow_dispatch:
jobs:
update:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
node: [ 20 ]
steps:
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Checkout π‘
uses: actions/checkout@v4
with:
ref: main
- name: Cache node_modules π°
uses: actions/cache@v4
with:
path: node_modules
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
- name: Install Dependencies π§¬
if: steps.cache.outputs.cache-hit != 'true'
run: npm install
- name: Update chains
run: npm run ci:update
env:
CI: true
- name: Show Diff
run: git --no-pager diff
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
branch: update/chains
delete-branch: true
title: 'chore: update chains config'
commit-message: 'chore: update chains config'
body: LFG! π
labels: |
update
automated pr
assignees: zakarialounes
reviewers: zakarialounes
draft: true