-
Notifications
You must be signed in to change notification settings - Fork 46
44 lines (43 loc) · 1.07 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
name: Update HUDs
on:
workflow_dispatch:
inputs:
huds:
description: 'HUD ID(s), space separated'
required: true
type: string
concurrency:
group: ${{ github.repository }}
cancel-in-progress: true
jobs:
update_huds:
name: Update HUDs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Refresh hash
run: |
python utils/update_hash.py ${{ github.event.inputs.huds }}
- name: Commit
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -am "HUD update: ${{ github.event.inputs.huds }}" || true
git push
check:
name: Check HUDs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
key: ${{ github.ref }}
path: .cache
- uses: pnpm/[email protected]
with:
version: 7
- name: Check
run: |
pnpm i
pnpm lint
pnpm check