From 66b1b1b804d903ef51109a99892b16d45fce2af8 Mon Sep 17 00:00:00 2001 From: Michael Wilkerson Date: Thu, 1 Feb 2024 10:14:03 -0800 Subject: [PATCH] add nightly for rc branch and .x branch --- .../workflows/weekly-acceptance-1-4-0-rc1.yml | 28 +++++++++++++++++++ .github/workflows/weekly-acceptance-1-4-x.yml | 28 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 .github/workflows/weekly-acceptance-1-4-0-rc1.yml create mode 100644 .github/workflows/weekly-acceptance-1-4-x.yml diff --git a/.github/workflows/weekly-acceptance-1-4-0-rc1.yml b/.github/workflows/weekly-acceptance-1-4-0-rc1.yml new file mode 100644 index 0000000000..e74a44ea70 --- /dev/null +++ b/.github/workflows/weekly-acceptance-1-4-0-rc1.yml @@ -0,0 +1,28 @@ +# Dispatch to the consul-k8s-workflows with a weekly cron +# +# A separate file is needed for each release because the cron schedules are different for each release. +name: weekly-acceptance-1-4-0-rc1 +on: + schedule: + # * is a special character in YAML so you have to quote this string + # Run weekly on Friday at 3AM UTC/11PM EST/8PM PST + - cron: '0 3 * * 5' + +# these should be the only settings that you will ever need to change +env: + BRANCH: "release/1.4.0-rc1" + CONTEXT: "weekly" + +jobs: + cloud: + name: cloud + runs-on: ubuntu-latest + steps: + - uses: benc-uk/workflow-dispatch@798e70c97009500150087d30d9f11c5444830385 # v1.2.2 + name: cloud + with: + workflow: cloud.yml + repo: hashicorp/consul-k8s-workflows + ref: main + token: ${{ secrets.ELEVATED_GITHUB_TOKEN }} + inputs: '{ "context":"${{ env.CONTEXT }}", "repository":"${{ github.repository }}", "branch":"${{ env.BRANCH }}", "sha":"${{ github.sha }}", "token":"${{ secrets.ELEVATED_GITHUB_TOKEN }}" }' diff --git a/.github/workflows/weekly-acceptance-1-4-x.yml b/.github/workflows/weekly-acceptance-1-4-x.yml new file mode 100644 index 0000000000..a6bbe05e6b --- /dev/null +++ b/.github/workflows/weekly-acceptance-1-4-x.yml @@ -0,0 +1,28 @@ +# Dispatch to the consul-k8s-workflows with a weekly cron +# +# A separate file is needed for each release because the cron schedules are different for each release. +name: weekly-acceptance-1-4-x +on: + schedule: + # * is a special character in YAML so you have to quote this string + # Run weekly on Thursday at 3AM UTC/11PM EST/8PM PST + - cron: '0 3 * * 4' + +# these should be the only settings that you will ever need to change +env: + BRANCH: "release/1.4.x" + CONTEXT: "weekly" + +jobs: + cloud: + name: cloud + runs-on: ubuntu-latest + steps: + - uses: benc-uk/workflow-dispatch@798e70c97009500150087d30d9f11c5444830385 # v1.2.2 + name: cloud + with: + workflow: cloud.yml + repo: hashicorp/consul-k8s-workflows + ref: main + token: ${{ secrets.ELEVATED_GITHUB_TOKEN }} + inputs: '{ "context":"${{ env.CONTEXT }}", "repository":"${{ github.repository }}", "branch":"${{ env.BRANCH }}", "sha":"${{ github.sha }}", "token":"${{ secrets.ELEVATED_GITHUB_TOKEN }}" }'