-
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (49 loc) · 1.67 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
name: "Step 2, Generate the project from Base builder"
on:
schedule:
- cron: '10 1 * * *'
workflow_dispatch:
push:
branches:
- 'main'
paths:
- 'conf/*'
- '.github/data/*'
- '.github/workflows/generate.yml'
jobs:
generate:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.VM_TOKEN }}
fetch-depth: '2'
- name: Preparing env variables
run: |
git switch main || (git fetch --all && git checkout -b main origin/main)
. conf/all.release.conf
echo "ALL_RELEASES=$ALL_RELEASES" >> $GITHUB_ENV
git clone https://github.com/vmactions/base-builder.git
mkdir -p .github/tpl
cat base-builder/.github/tpl/README.tpl.md >.github/tpl/README.tpl.md
- name: Generate files
uses: vmactions/render@v0.0.1
with:
datafile: .github/data/datafile.ini
files: |
base-builder/.github/tpl/build.tpl.yml : .github/workflows/build.yml
base-builder/.github/tpl/manual.tpl.yml : .github/workflows/manual.yml
base-builder/.github/FUNDING.yml : .github/FUNDING.yml
base-builder/.github/workflows/readme.yml : .github/workflows/readme.yml
base-builder/build.sh : build.sh
- uses: EndBug/add-and-commit@v9
with:
message: "Update from base builder"
pull: '--rebase --autostash '
add: |
.github/workflows/readme.yml
.github/workflows/manual.yml
.github/workflows/build.yml
.github/tpl/README.tpl.md
.github/FUNDING.yml
build.sh