From 997fd14c81a742dd36455f06e7c04f85a303a7ea Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Fri, 11 Oct 2024 09:23:19 +0200 Subject: [PATCH] only run one test deployment at once (#4724) When merging a bunch of PRs at once, it is enough if the newest one gets deployed. --- .github/workflows/deploy-test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-test.yml b/.github/workflows/deploy-test.yml index bb5de2d2a..f5a5b3e87 100644 --- a/.github/workflows/deploy-test.yml +++ b/.github/workflows/deploy-test.yml @@ -7,6 +7,10 @@ on: branches: - develop +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: true + jobs: check-and-build: uses: ./.github/workflows/check-and-build.yml @@ -23,7 +27,7 @@ jobs: - name: Setup uses: ./.github/actions/setup - - name: Set versionsCode + - name: Set versionCode run: | export VERSION_CODE=$(( ${BUILD_NUMBER} + 11000 )) sed -i'.original' -e "s/^\([[:space:]]*versionCode[[:space:]]*\)[0-9]*/\\1$VERSION_CODE/" app/build.gradle