From eb5149818d1fe6fd8876f0991a845ed81f4ac1dd Mon Sep 17 00:00:00 2001 From: neil Date: Sun, 10 Dec 2023 16:44:56 +0100 Subject: [PATCH] use base builder --- .github/data/datafile.ini | 4 ++++ .github/workflows/syncbase.yml | 42 ++++++++++++++++++++++++++++++++++ conf/all.release.conf | 4 ++++ 3 files changed, 50 insertions(+) create mode 100644 .github/data/datafile.ini create mode 100644 .github/workflows/syncbase.yml create mode 100644 conf/all.release.conf diff --git a/.github/data/datafile.ini b/.github/data/datafile.ini new file mode 100644 index 0000000..af5f8be --- /dev/null +++ b/.github/data/datafile.ini @@ -0,0 +1,4 @@ + + +VM_OS_NAME=omnios + diff --git a/.github/workflows/syncbase.yml b/.github/workflows/syncbase.yml new file mode 100644 index 0000000..8e94bb7 --- /dev/null +++ b/.github/workflows/syncbase.yml @@ -0,0 +1,42 @@ +name: "Step 1, Sync generate.yml from Base Builder" +on: + schedule: + - cron: '0 1 * * *' + workflow_dispatch: + push: + branches: + - 'main' + paths: + - '.github/data/*' + - 'conf/*' + - '.github/workflows/syncbase.yml' + + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + token: ${{ secrets.VM_TOKEN }} + + - name: Using main branch + run: | + git switch main || (git fetch --all && git checkout -b main origin/main) + git clone https://github.com/vmactions/base-builder.git + + - name: Sync generate.yml + uses: vmactions/render@v0.0.1 + with: + datafile: .github/data/datafile.ini + files: | + base-builder/.github/tpl/generate.tpl.yml : .github/workflows/generate.yml + + - uses: EndBug/add-and-commit@v9 + with: + message: "Sync from base-builder" + pull: '--rebase --autostash ' + add: | + .github/workflows/generate.yml + + diff --git a/conf/all.release.conf b/conf/all.release.conf new file mode 100644 index 0000000..9bc8624 --- /dev/null +++ b/conf/all.release.conf @@ -0,0 +1,4 @@ + +ALL_RELEASES='"r151046", "r151048"' + +