Skip to content

Commit

Permalink
Feature(actions): add concurrency control
Browse files Browse the repository at this point in the history
  • Loading branch information
xjasonlyu committed Oct 13, 2023
1 parent b0c66f9 commit 672efac
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Publish Docker Image

concurrency:
group: docker-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Linter

concurrency:
group: linter-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true

on: [ push, pull_request ]

jobs:
lint:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Publish Go Releases

concurrency:
group: release-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
tags:
Expand Down

0 comments on commit 672efac

Please sign in to comment.