aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorArif Ali <arif.ali@canonical.com>2022-11-03 15:10:02 +0000
committerJake Hunsaker <jhunsake@redhat.com>2022-11-04 11:21:32 -0400
commit674b94f26f287773f9210991bb997045cacff024 (patch)
treee29dca083880ac8e92b586c355ba16650113c97c /.github/workflows
parentc90d1e4bc21c97a3fa50ba16ee9e3b2a1ba9956f (diff)
downloadsos-674b94f26f287773f9210991bb997045cacff024.tar.gz
[build] Update snap push workflow
* snapcraft-channel was the old method, updating to release * fetch all history, so that the version of the snap will be based on the latest tag plus the number of commits since Signed-off-by: Arif Ali <arif.ali@canonical.com>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/snap.yaml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/snap.yaml b/.github/workflows/snap.yaml
index 7671106f..b4e5a8bb 100644
--- a/.github/workflows/snap.yaml
+++ b/.github/workflows/snap.yaml
@@ -10,6 +10,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
+ with:
+ fetch-depth: 0
- uses: snapcore/action-build@v1
id: build-snap
# Make sure the snap is installable
@@ -23,4 +25,4 @@ jobs:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
with:
snap: ${{ steps.build-snap.outputs.snap }}
- snapcraft-channel: "latest/edge"
+ release: "latest/edge"