From b1b55952ee6e20f816a7bed47795bdf2d92b1ee7 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Wed, 2 Mar 2022 14:24:42 +0000 Subject: [PATCH] CI: Add a workflow to trigger promotion of packages This change adds a CI workflow to trigger promotion of packages in Ark, whenever a change is merged to the stackhpc/wallaby branch. This ensures that all versions specified in pulp-repo-versions.yml are promoted to releases. --- .github/workflows/promote.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/promote.yml diff --git a/.github/workflows/promote.yml b/.github/workflows/promote.yml new file mode 100644 index 0000000000..435716be03 --- /dev/null +++ b/.github/workflows/promote.yml @@ -0,0 +1,26 @@ +--- +name: Promote package repositories +on: + push: + branches: + # NOTE(mgoddard): Keep this list tightly controlled, since we only want + # to promote from release branches. + - stackhpc/wallaby + # FIXME: remove + - ci-promote-packages +jobs: + promote: + name: Trigger package repository promotion + runs-on: ubuntu-latest + steps: + # NOTE(mgoddard): Trigger another CI workflow in the + # stackhpc-release-train repository. + - name: Trigger package repository promotion + run: | + gh workflow run \ + package-promote.yml \ + --repo stackhpc/stackhpc-release-train \ + --ref main \ + -f kayobe_config_branch=${{ github.ref_name }} + env: + GITHUB_TOKEN: ${{ secrets.STACKHPC_RELEASE_TRAIN_TOKEN }}