feat(ci): use concurrency.group to cancel previous jobs (#4795)

As recommended on the repo of the action we were using
https://github.com/styfle/cancel-workflow-action, we should use
`concurrency.group` rather than a dedicated action.

Here is a PR to use it on all our workflows
This commit is contained in:
Quentin G
2024-04-04 09:30:55 +02:00
committed by GitHub
parent bcf5268f7f
commit eab65f34f9
6 changed files with 25 additions and 25 deletions

View File

@ -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-cores
env:
REACT_APP_SERVER_BASE_URL: http://localhost:3000
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3