Step 2, Generate the project from Base builder #169
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
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 | |