From 042f1743ab91c7006ff1040d3f4f93fadc0a8a28 Mon Sep 17 00:00:00 2001 From: Alexander Popel Date: Mon, 13 Nov 2023 09:52:37 +0200 Subject: [PATCH] Add nightly-submodule-update workflow --- .github/workflows/nightly-prs-to-main.yml | 5 +++-- .../workflows/nightly-submodule-update.yml | 21 +++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/nightly-submodule-update.yml diff --git a/.github/workflows/nightly-prs-to-main.yml b/.github/workflows/nightly-prs-to-main.yml index 7d561ef..ba86b1f 100644 --- a/.github/workflows/nightly-prs-to-main.yml +++ b/.github/workflows/nightly-prs-to-main.yml @@ -7,8 +7,9 @@ on: default: false type: boolean description: Dry Run - schedule: - - cron: '0 1 * * *' + workflow_run: + workflows: [Nightly Submodule Update] + types: [completed] jobs: Nightly_PRs_to_Main: diff --git a/.github/workflows/nightly-submodule-update.yml b/.github/workflows/nightly-submodule-update.yml new file mode 100644 index 0000000..81a9f84 --- /dev/null +++ b/.github/workflows/nightly-submodule-update.yml @@ -0,0 +1,21 @@ +name: Nightly Submodule Update + +on: + workflow_dispatch: + inputs: + dryrun: + default: false + type: boolean + description: Dry Run + schedule: + - cron: '0 1 * * *' + +jobs: + Nightly_Submodule_Update: + uses: 51Degrees/common-ci/.github/workflows/nightly-submodule-update.yml@main + with: + repo-name: ${{ github.event.repository.name }} + org-name: ${{ github.event.repository.owner.login }} + dryrun: ${{ inputs.dryrun || false }} + secrets: + token: ${{ secrets.ACCESS_TOKEN }}