From b4f3d982b73d8a93dbe02e281042134a5cdb6b90 Mon Sep 17 00:00:00 2001 From: Matthias Viehweger Date: Wed, 11 Oct 2023 22:52:51 +0200 Subject: [PATCH] Add nightly integration update --- .github/workflows/build-composition.yml | 9 +++++++-- .github/workflows/nightly-integration.yml | 21 +++++++++++++++++++++ .github/workflows/prepare-release.yml | 7 +++++++ 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/nightly-integration.yml diff --git a/.github/workflows/build-composition.yml b/.github/workflows/build-composition.yml index 04d9a7f..8daf4ca 100644 --- a/.github/workflows/build-composition.yml +++ b/.github/workflows/build-composition.yml @@ -11,8 +11,13 @@ on: options: - integration - production - # schedule: - # - cron: '24 2 * * *' + workflow_call: + inputs: + stage: + type: string + description: "Stage of release to be prepared" + default: integration + required: true jobs: settings: diff --git a/.github/workflows/nightly-integration.yml b/.github/workflows/nightly-integration.yml new file mode 100644 index 0000000..59e3fae --- /dev/null +++ b/.github/workflows/nightly-integration.yml @@ -0,0 +1,21 @@ +name: 'Update Integration' + +on: + workflow_dispatch: + schedule: + - cron: '24 2 * * 1-5' + +jobs: + prepare: + uses: ./.github/workflows/prepare-release.yml + with: + stage: integration + secrets: inherit + + build: + uses: ./.github/workflows/build-composition.yml + with: + stage: integration + needs: + - prepare + secrets: inherit diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 4126654..2cb1ff0 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -11,6 +11,13 @@ on: options: - integration - production + workflow_call: + inputs: + stage: + type: string + description: "Stage of release to be prepared" + default: integration + required: true jobs: prepare_release: