Skip to content

Commit

Permalink
Update workflow concurrency and publish on release (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwheeler authored May 23, 2023
1 parent 0b28591 commit 8155ba3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ on:
branches:
- main
pull_request:
release:
types: [published]
concurrency:
group: ${{ github.head_ref || github.run_id }}
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
Expand Down Expand Up @@ -40,7 +42,7 @@ jobs:
skip_existing: true
verbose: true
publish:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
if: github.event_name == 'release'
needs: build
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- main
pull_request:
concurrency:
group: ${{ github.head_ref || github.run_id }}
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
lint:
Expand Down

0 comments on commit 8155ba3

Please sign in to comment.