From 980dae52d472efa1eb6572f225bf86d4d56669fd Mon Sep 17 00:00:00 2001 From: mauro-balades Date: Tue, 1 Oct 2024 20:11:10 +0200 Subject: [PATCH] Update build.yml and twilight-release-schedule.yml --- .github/workflows/build.yml | 19 +++++++++++- .../workflows/twilight-release-schedule.yml | 29 +++++++++++++++++++ 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/twilight-release-schedule.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 908caa131..fa11e7bd1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,24 @@ on: options: - 'alpha' - 'twilight' - + workflow_call: + inputs: + create_release: + description: 'Create a new release for this build' + required: false + default: false + type: 'boolean' + update_version: + description: 'Update the version number' + required: false + default: false + type: 'boolean' + update_branch: + description: 'Update branch with new version' + required: true + default: 'alpha' + type: 'string' + jobs: build-data: permissions: diff --git a/.github/workflows/twilight-release-schedule.yml b/.github/workflows/twilight-release-schedule.yml new file mode 100644 index 000000000..54d333f17 --- /dev/null +++ b/.github/workflows/twilight-release-schedule.yml @@ -0,0 +1,29 @@ +name: Zen Twilight Scheduled Releases +on: + schedule: + - cron: '0 0 * * *' + workflow_dispatch: + +jobs: + twilight-release-schedule: + name: Twilight Release Schedule + uses: ./.github/workflows/build.yml + with: + create_release: true + update_branch: twilight + update_version: true + + post-build: + name: Post Build + runs-on: ubuntu-latest + needs: twilight-release-schedule + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Node.js and pnpm + uses: actions/setup-node@v3 + with: + node-version: 20 + + # TODO: \ No newline at end of file