-
Notifications
You must be signed in to change notification settings - Fork 1
84 lines (76 loc) · 2.31 KB
/
generate.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
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
---
name: Generate Media
on:
workflow_dispatch:
inputs:
mainline_product:
description: 'Mainline product branch'
required: true
default: 'wow'
type: choice
options:
- wow
- wowt
- wowxptr
- wow_beta
classic_product:
description: 'Classic product branch'
required: true
default: 'wow_classic'
type: choice
options:
- wow_classic
- wow_classic_ptr
- wow_classic_beta
classic_era_product:
description: 'Classic Era product branch'
required: true
default: 'wow_classic_era'
type: choice
options:
- wow_classic_era
- wow_classic_era_ptr
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -qqy ffmpeg
sudo python3 -m pip install git+https://github.com/luarocks/hererocks
sudo hererocks -l 5.1 -r latest /usr/local
sudo luarocks make
- name: Cache database
uses: actions/cache@v3
with:
key: database
path: |
.cache/build.*
.cache/cdn.*
.cache/encoding.*
.cache/index.*
.cache/pconf.*
.cache/root.*
- name: Generate Media
run: make ${MAINLINE_PRODUCT} ${CLASSIC_PRODUCT} ${CLASSIC_ERA_PRODUCT}
env:
MAINLINE_PRODUCT: ${{ inputs.mainline_product }}
CLASSIC_PRODUCT: ${{ inputs.classic_product }}
CLASSIC_ERA_PRODUCT: ${{ inputs.classic_era_product }}
- name: Increment library version
run: |
if [[ -n "$(git status --porcelain=v1 2>/dev/null)" ]]; then
perl -i -pe 's/(MINOR_VERSION = )(\d+)/$1.($2+1)/e' LibRPMedia-1.2.lua
fi
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
branch: actions/regenerate-databases
commit-message: Regenerate Databases
delete-branch: true
title: Automated regeneration of media databases
body: Automated regeneration of media databases.
author: GitHub <noreply@github.com>
reviewers: Meorawr