The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
feat(ci): use concurrency.group to cancel previous jobs (#4795)
Quentin Geab65f34f95b
diff --git a/.github/workflows/ci-chromatic.yaml b/.github/workflows/ci-chromatic.yamlindex 3e34a2ee2c4..fb0408e086e 100644--- a/.github/workflows/ci-chromatic.yaml+++ b/.github/workflows/ci-chromatic.yaml@@ -12,6 +12,10 @@ on:paths:- 'package.json'- 'packages/twenty-front/**'+concurrency:+ group: ${{ github.workflow }}-${{ github.ref }}+ cancel-in-progress: true+jobs:chromatic-deployment:if: contains(github.event.pull_request.labels.*.name, 'run-chromatic') || github.event_name == 'push'@@ -20,10 +24,6 @@ jobs:REACT_APP_SERVER_BASE_URL: http://127.0.0.1:3000CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}steps:- - name: Cancel Previous Runs- uses: styfle/[email protected]- with:- access_token: ${{ github.token }}- uses: actions/checkout@v4with:fetch-depth: 0diff --git a/.github/workflows/ci-chrome-extension.yaml b/.github/workflows/ci-chrome-extension.yamlindex 1251f7298a2..c50ecbf0cef 100644--- a/.github/workflows/ci-chrome-extension.yaml+++ b/.github/workflows/ci-chrome-extension.yaml@@ -10,6 +10,10 @@ on:paths:- 'package.json'- 'packages/twenty-chrome-extension/**'+concurrency:+ group: ${{ github.workflow }}-${{ github.ref }}+ cancel-in-progress: true+jobs:chrome-extension-yarn-install:runs-on: ci-8-cores@@ -17,10 +21,6 @@ jobs:VITE_SERVER_BASE_URL: http://localhost:3000VITE_FRONT_BASE_URL: http://localhost:3001steps:- - name: Cancel Previous Runs- uses: styfle/[email protected]- with:- access_token: ${{ github.token }}- uses: actions/checkout@v4- name: Setup Node.jsuses: actions/setup-node@v3diff --git a/.github/workflows/ci-docs.yaml b/.github/workflows/ci-docs.yamlindex 40741cd21f9..a08cd741a5c 100644--- a/.github/workflows/ci-docs.yaml+++ b/.github/workflows/ci-docs.yaml@@ -10,14 +10,14 @@ on:paths:- 'package.json'- 'packages/twenty-docs/**'+concurrency:+ group: ${{ github.workflow }}-${{ github.ref }}+ cancel-in-progress: true+jobs:docs-build:runs-on: ubuntu-lateststeps:- - name: Cancel Previous Runs- uses: styfle/[email protected]- with:- access_token: ${{ github.token }}- uses: actions/checkout@v4- name: Setup Node.jsuses: actions/setup-node@v3diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yamlindex 5076176e6f9..80e21acff65 100644--- a/.github/workflows/ci-front.yaml+++ b/.github/workflows/ci-front.yaml@@ -10,16 +10,16 @@ on:paths:- 'package.json'- 'packages/twenty-front/**'+concurrency:+ group: ${{ github.workflow }}-${{ github.ref }}+ cancel-in-progress: true+jobs:front-yarn-install:runs-on: ci-8-coresenv:REACT_APP_SERVER_BASE_URL: http://localhost:3000steps:- - name: Cancel Previous Runs- uses: styfle/[email protected]- with:- access_token: ${{ github.token }}- uses: actions/checkout@v4- name: Setup Node.jsuses: actions/setup-node@v3diff --git a/.github/workflows/ci-server.yaml b/.github/workflows/ci-server.yamlindex ac67997c814..5938e9fb268 100644--- a/.github/workflows/ci-server.yaml+++ b/.github/workflows/ci-server.yaml@@ -10,6 +10,10 @@ on:paths:- 'package.json'- 'packages/twenty-server/**'+concurrency:+ group: ${{ github.workflow }}-${{ github.ref }}+ cancel-in-progress: true+jobs:server-test:runs-on: ubuntu-latest@@ -22,10 +26,6 @@ jobs:ports:- 5432:5432steps:- - name: Cancel Previous Runs- uses: styfle/[email protected]- with:- access_token: ${{ github.token }}- uses: actions/checkout@v4- name: Setup Node.jsuses: actions/setup-node@v3diff --git a/.github/workflows/ci-utils.yaml b/.github/workflows/ci-utils.yamlindex c1625bc120c..e77c430a059 100644--- a/.github/workflows/ci-utils.yaml+++ b/.github/workflows/ci-utils.yaml@@ -2,7 +2,7 @@ name: CI Utilson:# it's usually not recommended to use pull_request_target# but we consider it's safe here if we keep the same steps- # see: https://securitylab.github.com/research/github-actions-preventing-pwn-requests/+ # see: https://securitylab.github.com/research/github-actions-preventing-pwn-requests/# and: https://github.com/facebook/react-native/pull/34370/filespull_request_target:permissions:@@ -12,14 +12,14 @@ permissions:issues: writepull-requests: writestatuses: write+concurrency:+ group: ${{ github.workflow }}-${{ github.ref }}+ cancel-in-progress: true+jobs:danger-js:runs-on: ubuntu-lateststeps:- - name: Cancel Previous Runs- uses: styfle/[email protected]- with:- access_token: ${{ github.token }}- uses: actions/checkout@v4- name: Setup Node.jsuses: actions/setup-node@v3