-
-
Notifications
You must be signed in to change notification settings - Fork 8
37 lines (32 loc) · 1.04 KB
/
assets.yaml
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
name: Frontend assets
on:
pull_request:
paths:
- 'Resources/Private/Frontend/**'
jobs:
rebuild:
if: ${{ github.actor == 'renovate[bot]' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.REBUILD_ASSETS_TOKEN }}
# Prepare environment
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
cache-dependency-path: 'Resources/Private/Frontend/yarn.lock'
# Install Frontend dependencies
- name: Install Frontend dependencies
run: yarn --cwd Resources/Private/Frontend --frozen-lockfile
# Re-create Frontend dist files
- name: Re-create dist files
run: yarn --cwd Resources/Private/Frontend build
# Update PR
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: '[TASK] Automatically rebuild frontend assets'
commit_author: 'Elias Häußler <[email protected]>'