Skip to content

Commit

Permalink
Update gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gavv committed Nov 15, 2023
1 parent f046ee4 commit 2a1fd2d
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/detect_conflicts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
types:
- synchronize

concurrency:
group: pr-${{ github.event.pull_request.number || github.ref }}

jobs:
main:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr_closed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
types:
- closed

concurrency:
group: pr-${{ github.event.pull_request.number || github.ref }}

jobs:
main:
runs-on: ubuntu-latest
Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/pr_opened.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
if: github.event.pull_request.draft == true
with:
add-labels: 'work in progress'

- uses: andymckay/[email protected]
if: tojson(github.event.pull_request.requested_reviewers) != '[]'
with:
add-labels: 'ready for review'

check-issue:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pr_ready.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/pr_wip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand Down

0 comments on commit 2a1fd2d

Please sign in to comment.