diff options
author | Arif Ali <arif.ali@canonical.com> | 2022-11-05 22:31:53 +0000 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2022-11-07 09:25:19 -0500 |
commit | 9a0001b6f637605360608bcd088a4f65c2aabe83 (patch) | |
tree | 842413de7c27cb43ce061df7235c4e70824210f3 | |
parent | 59f5bdd52dc990c2c33c10b5cf127cd53b9e802e (diff) | |
download | sos-9a0001b6f637605360608bcd088a4f65c2aabe83.tar.gz |
[build] add concurrency to workflow
Add concutrrency to the job, so that if there is one already
running, then that would be cancelled
Remove the deb package, and that takes precedance with the path
do the test doesn't quite work
Signed-off-by: Arif Ali <arif.ali@canonical.com>
-rw-r--r-- | .github/workflows/snap.yaml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/snap.yaml b/.github/workflows/snap.yaml index b4e5a8bb..3415be95 100644 --- a/.github/workflows/snap.yaml +++ b/.github/workflows/snap.yaml @@ -3,11 +3,13 @@ on: push: branches: - main - workflow_dispatch: jobs: build: runs-on: ubuntu-latest + concurrency: + group: snap-build + cancel-in-progress: true steps: - uses: actions/checkout@v3 with: @@ -16,6 +18,7 @@ jobs: id: build-snap # Make sure the snap is installable - run: | + sudo apt -y remove sosreport sudo snap install --classic --dangerous ${{ steps.build-snap.outputs.snap }} # Do some testing with the snap - run: | |