add concurrency setting to workflows

it helps minimize github action views and stop outdated jobs
This commit is contained in:
Maycon Santos
2023-04-07 18:41:05 +02:00
parent 9158a4653a
commit 23b92e2615
8 changed files with 28 additions and 3 deletions

View File

@@ -1,5 +1,8 @@
name: golangci-lint
on: [pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }}
cancel-in-progress: true
jobs:
golangci:
name: lint