From 2cbe7a6afe52dce8832a12de4a1607f322cb957e Mon Sep 17 00:00:00 2001 From: Jean Brito Date: Tue, 20 Aug 2024 09:19:18 -0300 Subject: [PATCH] add concurrency and tags back --- .github/workflows/pull-request-build.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pull-request-build.yml b/.github/workflows/pull-request-build.yml index 7b463eb8d..bb54a3275 100644 --- a/.github/workflows/pull-request-build.yml +++ b/.github/workflows/pull-request-build.yml @@ -6,8 +6,13 @@ on: - master - develop +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true + jobs: build: + if: contains(github.event.pull_request.labels.*.name, 'build-artifacts') strategy: fail-fast: false matrix: @@ -21,17 +26,17 @@ jobs: run: git config --global core.autocrlf false - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup Node 21.7.1 - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: '21.7.1' - name: Setup node_modules cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}