From d1daf7111aaf318dbfc6d870f86836dd15a4affe Mon Sep 17 00:00:00 2001 From: Mark Beierl Date: Mon, 22 Jan 2024 14:31:58 -0500 Subject: [PATCH] feat: TELCO-948 Use track for charm publication (#63) --- .github/workflows/main.yaml | 1 + .github/workflows/promote.yaml | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index e6e95b2..097cc01 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -40,6 +40,7 @@ jobs: uses: canonical/sdcore-github-workflows/.github/workflows/publish-charm.yaml@main with: charm-file-name: "sdcore-nrf-k8s_ubuntu-22.04-amd64.charm" + track-name: 1.3 secrets: inherit lib-needs-publishing: diff --git a/.github/workflows/promote.yaml b/.github/workflows/promote.yaml index 37c2d53..4282fed 100644 --- a/.github/workflows/promote.yaml +++ b/.github/workflows/promote.yaml @@ -10,6 +10,13 @@ on: - edge -> beta - beta -> candidate - candidate -> stable + track-name: + type: choice + description: Name of the charmhub track to publish + options: + - 1.3 + - latest + jobs: promote: @@ -17,4 +24,6 @@ jobs: uses: canonical/sdcore-github-workflows/.github/workflows/promote.yaml@main with: promotion: ${{ github.event.inputs.promotion }} + track-name: ${{ github.event.inputs.track-name }} + secrets: inherit