Skip to content

Scheduling infrastructure for absolutely everyone.

Adds concurrency to workflows

zomars54f1eef3081d
diff --git a/.github/workflows/check-if-ui-has-changed.yml b/.github/workflows/check-if-ui-has-changed.yml
index ce6a01ff906..9e702440e8b 100644
--- a/.github/workflows/check-if-ui-has-changed.yml
+++ b/.github/workflows/check-if-ui-has-changed.yml
@@ -12,6 +12,9 @@ on:
- apps/storybook/**
- packages/ui/**
workflow_dispatch:
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
# List of jobs
jobs:
diff --git a/.github/workflows/check-types.yml b/.github/workflows/check-types.yml
index edcfb3a6717..ebb3260d944 100644
--- a/.github/workflows/check-types.yml
+++ b/.github/workflows/check-types.yml
@@ -5,6 +5,9 @@ on:
- main
paths:
- "**.tsx?"
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
jobs:
check-types:
runs-on: ubuntu-latest
diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml
index e6fbff03b77..c46629f4cb8 100644
--- a/.github/workflows/crowdin.yml
+++ b/.github/workflows/crowdin.yml
@@ -4,22 +4,24 @@ on:
push:
branches:
- main
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
jobs:
synchronize-with-crowdin:
runs-on: ubuntu-latest
steps:
+ - name: Checkout
+ uses: actions/checkout@v2
- - name: Checkout
- uses: actions/checkout@v2
-
- - name: crowdin action
- uses: crowdin/[email protected]
- with:
- upload_translations: true
- download_translations: true
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
- CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
+ - name: crowdin action
+ uses: crowdin/[email protected]
+ with:
+ upload_translations: true
+ download_translations: true
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
+ CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
diff --git a/.github/workflows/e2e-app-store.yml b/.github/workflows/e2e-app-store.yml
index fd9e2bd1bac..ebb0edf01f0 100644
--- a/.github/workflows/e2e-app-store.yml
+++ b/.github/workflows/e2e-app-store.yml
@@ -12,6 +12,9 @@ on:
- apps/swagger/**
- apps/website/**
- apps/web/public/**
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
jobs:
test:
timeout-minutes: 20
@@ -97,4 +100,3 @@ jobs:
with:
name: test-results
path: test-results
-
diff --git a/.github/workflows/e2e-embed.yml b/.github/workflows/e2e-embed.yml
index 83ed8ae5fd0..ff3202776d5 100644
--- a/.github/workflows/e2e-embed.yml
+++ b/.github/workflows/e2e-embed.yml
@@ -7,6 +7,9 @@ on:
paths:
- apps/web/**
- packages/embeds/**
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
jobs:
e2e-embed:
timeout-minutes: 20
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index 61d03215340..306cba46f1d 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -8,6 +8,9 @@ on:
paths:
- apps/web/**
- packages/**
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
jobs:
e2e:
timeout-minutes: 20
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
index ff514935a76..5c9910a83fa 100644
--- a/.github/workflows/labeler.yml
+++ b/.github/workflows/labeler.yml
@@ -1,7 +1,9 @@
name: "Pull Request Labeler"
on:
- pull_request_target
-
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
jobs:
labeler:
permissions:
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index f868fd30b75..10ed6b68efa 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -6,6 +6,9 @@ on:
paths:
- "**.tsx?"
- "**.jsx?"
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
diff --git a/.github/workflows/required-checks.yml b/.github/workflows/required-checks.yml
index 69b853e513e..59988ef2ae9 100644
--- a/.github/workflows/required-checks.yml
+++ b/.github/workflows/required-checks.yml
@@ -5,6 +5,9 @@ on:
pull_request:
branches:
- main
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
jobs:
required-checks:
runs-on: ubuntu-latest
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 550ed58c5c1..f8e2f57d13c 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -8,6 +8,9 @@ on:
paths:
- apps/web/**
- packages/**
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
jobs:
test:
timeout-minutes: 20