From ea33f4fbf53db8e2d2892f77b467efb0517e710f Mon Sep 17 00:00:00 2001 From: Timothy LeBon Date: Thu, 25 Jan 2024 09:07:09 +0100 Subject: [PATCH] chore: update release pipeline (#4470) --- .../workflows/cherry-pick-release-to-dev.yml | 23 +++++++++++++++++++ .github/workflows/ci.yml | 2 +- .github/workflows/test_build_deploy.yml | 6 ++++- 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/cherry-pick-release-to-dev.yml diff --git a/.github/workflows/cherry-pick-release-to-dev.yml b/.github/workflows/cherry-pick-release-to-dev.yml new file mode 100644 index 0000000000..dfcff0e7b8 --- /dev/null +++ b/.github/workflows/cherry-pick-release-to-dev.yml @@ -0,0 +1,23 @@ +# This job will automatically create a cherry pick PR from any release/* branch to the staging branch +# It allows the staging branch to stay up-to-date with fixes made to specific release branches +name: Cherry pick to staging +on: + push: + branches: + - release/* +jobs: + cherry_pick: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Create PR to branch + uses: gorillio/github-action-cherry-pick@master + with: + pr_branch: 'staging' + env: + GITHUB_TOKEN: ${{ secrets.OTTO_THE_BOT_GH_TOKEN }} + diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 607ea319d5..b7cc40bb5c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,7 @@ on: tags: - v* pull_request: - branches: [staging, main] + branches: [staging, main, release/*] jobs: test_build_deploy: diff --git a/.github/workflows/test_build_deploy.yml b/.github/workflows/test_build_deploy.yml index 10aaf9ba1f..b57044e89f 100644 --- a/.github/workflows/test_build_deploy.yml +++ b/.github/workflows/test_build_deploy.yml @@ -2,7 +2,7 @@ name: Test, Build & Deploy on: push: - branches: [staging, main] + branches: [staging, main, release/*] tags: - v* @@ -74,6 +74,10 @@ jobs: wire_builds_target_branches='["dev"]' fi + if [ "$version_tag" == "release/q1-2024" ]; then + wire_builds_target_branches='["q1-2024"]' + fi + echo "wire_builds_target_branches: $wire_builds_target_branches" echo "wire_builds_target_branches=$wire_builds_target_branches" >> $GITHUB_OUTPUT