From 141e3884ce845dbf72048ad43c97c4bc6f9eb53c Mon Sep 17 00:00:00 2001 From: shipperizer Date: Mon, 20 May 2024 11:28:59 +0100 Subject: [PATCH] ci: standardize ci --- .github/workflows/{promote.yaml => release.yaml} | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) rename .github/workflows/{promote.yaml => release.yaml} (66%) diff --git a/.github/workflows/promote.yaml b/.github/workflows/release.yaml similarity index 66% rename from .github/workflows/promote.yaml rename to .github/workflows/release.yaml index 6e94499e..31df7ff7 100644 --- a/.github/workflows/promote.yaml +++ b/.github/workflows/release.yaml @@ -1,4 +1,5 @@ -name: Promote Charm +# reusable workflow triggered manually +name: Release charm to other tracks and channels on: workflow_dispatch: @@ -15,11 +16,12 @@ jobs: name: Promote charm runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 - name: Release charm to channel - uses: canonical/charming-actions/release-charm@2.3.0 + uses: canonical/charming-actions/release-charm@631c2d944da2bd12430f1f3a954c8fffcf2385cd # 2.4.0 with: credentials: ${{ secrets.CHARMCRAFT_CREDENTIALS }} github-token: ${{ secrets.GITHUB_TOKEN }} destination-channel: ${{ github.event.inputs.destination-channel }} origin-channel: ${{ github.event.inputs.origin-channel }} + base-channel: '22.04'