-
Notifications
You must be signed in to change notification settings - Fork 31
34 lines (32 loc) · 904 Bytes
/
resource.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
name: 'Update Resources'
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: resources
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Build resources.json
env:
KEY: ${{ secrets.KEY }}
run: |
cd sync
npm ci
npm run build --if-present
npm start
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: Automated update of resources.json
title: Updating resources branch with latest version of resources.json
body: This is entirely automated. If something doesn't look right, fix it!
branch: update-resources