diff --git a/.github/workflows/detect_conflicts.yml b/.github/workflows/detect_conflicts.yml index 6fc3a4f6d..ccbc4c471 100644 --- a/.github/workflows/detect_conflicts.yml +++ b/.github/workflows/detect_conflicts.yml @@ -10,6 +10,9 @@ on: types: - synchronize +concurrency: + group: pr-${{ github.event.pull_request.number || github.ref }} + jobs: main: runs-on: ubuntu-latest diff --git a/.github/workflows/pr_closed.yml b/.github/workflows/pr_closed.yml index 6f7933509..c80ce91a3 100644 --- a/.github/workflows/pr_closed.yml +++ b/.github/workflows/pr_closed.yml @@ -5,6 +5,9 @@ on: types: - closed +concurrency: + group: pr-${{ github.event.pull_request.number || github.ref }} + jobs: main: runs-on: ubuntu-latest diff --git a/.github/workflows/pr_opened.yml b/.github/workflows/pr_opened.yml index 93dfcc535..ae4103327 100644 --- a/.github/workflows/pr_opened.yml +++ b/.github/workflows/pr_opened.yml @@ -5,8 +5,24 @@ on: types: - opened +concurrency: + group: pr-${{ github.event.pull_request.number || github.ref }} + jobs: - main: + check-ready: + runs-on: ubuntu-latest + steps: + - uses: andymckay/labeler@1.0.4 + if: github.event.pull_request.draft == true + with: + add-labels: 'work in progress' + + - uses: andymckay/labeler@1.0.4 + if: tojson(github.event.pull_request.requested_reviewers) != '[]' + with: + add-labels: 'ready for review' + + check-issue: runs-on: ubuntu-latest steps: - name: Checkout diff --git a/.github/workflows/pr_ready.yml b/.github/workflows/pr_ready.yml index b27ca1a76..c958c9790 100644 --- a/.github/workflows/pr_ready.yml +++ b/.github/workflows/pr_ready.yml @@ -4,6 +4,10 @@ on: pull_request_target: types: - review_requested + - ready_for_review + +concurrency: + group: pr-${{ github.event.pull_request.number || github.ref }} jobs: main: diff --git a/.github/workflows/pr_wip.yml b/.github/workflows/pr_wip.yml index 50a00946d..4370b5df2 100644 --- a/.github/workflows/pr_wip.yml +++ b/.github/workflows/pr_wip.yml @@ -3,8 +3,11 @@ name: "pr_wip" on: pull_request_target: types: - - converted_to_draft - review_request_removed + - converted_to_draft + +concurrency: + group: pr-${{ github.event.pull_request.number || github.ref }} jobs: main: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 960bb71fd..342549b5c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,10 @@ on: - v* workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: checks: if: ${{ startsWith(github.ref, 'refs/tags/v') }}