From 865cade06aa61fdebc3f064e2476b45af675ebc3 Mon Sep 17 00:00:00 2001 From: JP Meijers Date: Mon, 30 Sep 2024 16:58:31 +0200 Subject: [PATCH] Pull snap name out into a global variable --- .github/workflows/snap-ci.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/snap-ci.yaml b/.github/workflows/snap-ci.yaml index ed19e89..0e73110 100644 --- a/.github/workflows/snap-ci.yaml +++ b/.github/workflows/snap-ci.yaml @@ -10,6 +10,9 @@ on: # Allow manual trigger workflow_dispatch: +env: + SNAP_NAME: chip-tool + jobs: matrix-build: strategy: @@ -32,7 +35,7 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v4 with: - name: chip-tool_${{ github.run_number}}_${{matrix.runs.architecture}} + name: ${{env.SNAP_NAME}}_${{github.run_number}}_${{matrix.runs.architecture}} path: ${{ steps.snapcraft.outputs.snap }} if-no-files-found: error @@ -83,4 +86,4 @@ jobs: SNAPCRAFT_HAS_TTY: "true" SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }} run: | - yes | snapcraft promote chip-tool --from-channel latest/edge --to-channel latest/beta + yes | snapcraft promote $SNAP_NAME --from-channel latest/edge --to-channel latest/beta