Skip to content

Commit

Permalink
Sync from base-builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Neilpang committed Dec 10, 2023
1 parent e3bce7e commit c3badd6
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
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-latest
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

0 comments on commit c3badd6

Please sign in to comment.