Skip to content

Commit

Permalink
Pull snap name out into a global variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jpm-canonical committed Sep 30, 2024
1 parent 96ca398 commit 865cade
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/snap-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
# Allow manual trigger
workflow_dispatch:

env:
SNAP_NAME: chip-tool

jobs:
matrix-build:
strategy:
Expand All @@ -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

Expand Down Expand Up @@ -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

0 comments on commit 865cade

Please sign in to comment.