0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00

refactor(ci): add concurrency (#1123)

* refactor(ci): add concurrency

* fix(ci): concurrency group
This commit is contained in:
Gao Sun 2022-06-17 23:58:29 +08:00 committed by GitHub
parent 94084a49e7
commit 4df749e142
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 5 deletions

View file

@ -4,6 +4,10 @@ on:
pull_request: pull_request:
types: [opened, edited, synchronize, reopened] types: [opened, edited, synchronize, reopened]
concurrency:
group: commitlint-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
lint-commits: lint-commits:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View file

@ -4,10 +4,11 @@ on:
push: push:
branches: [ master ] branches: [ master ]
concurrency: deploy-dev
jobs: jobs:
deploy: deploy:
environment: dev environment: dev
concurrency: deploy-dev
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

View file

@ -2,8 +2,10 @@ name: Integration Test
on: on:
push: push:
branches: [master]
pull_request: concurrency:
group: integration-test-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
package: package:

View file

@ -1,10 +1,12 @@
name: Main name: Main
on: on:
push:
branches: [master]
pull_request: pull_request:
concurrency:
group: main-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
main-build: main-build:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View file

@ -6,6 +6,10 @@ on:
pull_request: pull_request:
types: [opened, edited, synchronize, reopened] types: [opened, edited, synchronize, reopened]
concurrency:
group: update-metadata-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
update-metadata: update-metadata:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View file

@ -6,6 +6,10 @@ on:
pull_request: pull_request:
branches: [master] branches: [master]
concurrency:
group: upload-annotations-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
upload-annotations: upload-annotations:
runs-on: ubuntu-latest runs-on: ubuntu-latest