ci: add auto_merge_enabled to PR activity types and concurrency settings (#2471)

* ci: add auto_merge_enabled to pr activity types

* fix  (auto-update.yml): remove 'dev' branch from trigger to run workflow on 'main' branch pushes only

fix (js_autofix.yml): remove unnecessary push trigger for 'main' branch in workflow to run on specific file changes only

* ci: Update concurrency settings in CI workflows
This commit is contained in:
Gabriel Luiz Freitas Almeida
2024-07-01 22:45:15 -03:00
committed by GitHub
parent 32e12cf72a
commit 26a71e1c36
8 changed files with 24 additions and 11 deletions

View File

@ -3,7 +3,6 @@ name: Auto-update
on:
push:
branches:
- dev
- main
jobs:

View File

@ -2,11 +2,7 @@ name: autofix.ci
on:
pull_request:
types: [opened, synchronize, reopened, auto_merge_enabled, auto_merge_disabled]
paths:
- "src/frontend/**"
push:
branches: [ "main" ]
types: [opened, synchronize, reopened, auto_merge_enabled]
paths:
- "src/frontend/**"

View File

@ -5,6 +5,9 @@ on:
paths:
- "src/frontend/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
NODE_VERSION: "21"

View File

@ -2,10 +2,14 @@ name: Lint Python
on:
pull_request:
types: [opened, synchronize, reopened]
types: [opened, synchronize, reopened, auto_merge_enabled]
env:
POETRY_VERSION: "1.8.2"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Run Mypy

View File

@ -1,7 +1,7 @@
name: autofix.ci
on:
pull_request:
types: [opened, synchronize, reopened, auto_merge_enabled, auto_merge_disabled]
types: [opened, synchronize, reopened, auto_merge_enabled]
paths:
- "poetry.lock"
- "pyproject.toml"

View File

@ -2,11 +2,15 @@ name: Python tests
on:
pull_request:
types: [opened, synchronize, reopened]
types: [opened, synchronize, reopened, auto_merge_enabled]
branches: [main]
env:
POETRY_VERSION: "1.8.2"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Run Unit Tests

View File

@ -2,7 +2,11 @@ name: Ruff Style Check
on:
pull_request:
types: [opened, synchronize, reopened]
types: [opened, synchronize, reopened, auto_merge_enabled]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
POETRY_VERSION: "1.8.2"

View File

@ -8,8 +8,11 @@ on:
required: false
type: string
pull_request:
types: [opened, synchronize, reopened]
types: [opened, synchronize, reopened, auto_merge_enabled]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
POETRY_VERSION: "1.8.3"