From fc79280675d26888ac96758880bd9f06b770499f Mon Sep 17 00:00:00 2001 From: George Song Date: Wed, 15 Dec 2021 15:22:09 -0800 Subject: [PATCH 1/3] ci: pin netlify-cli version --- .github/workflows/deploy-develop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-develop.yml b/.github/workflows/deploy-develop.yml index 9967e6fa6f7..11e65692972 100644 --- a/.github/workflows/deploy-develop.yml +++ b/.github/workflows/deploy-develop.yml @@ -74,7 +74,7 @@ jobs: - name: Netlify deploy run: | - sudo npm install -g netlify-cli + sudo npm install -g netlify-cli@8.1.3 netlify deploy --dir=public --prod env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} From 2c9bd97dfa2231855afe5f046c8dede2f6558799 Mon Sep 17 00:00:00 2001 From: George Song Date: Wed, 15 Dec 2021 15:27:30 -0800 Subject: [PATCH 2/3] ci: add concurrency check for develop builds --- .github/workflows/deploy-develop.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/deploy-develop.yml b/.github/workflows/deploy-develop.yml index 11e65692972..051af8dca5f 100644 --- a/.github/workflows/deploy-develop.yml +++ b/.github/workflows/deploy-develop.yml @@ -5,6 +5,10 @@ on: - develop workflow_dispatch: +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + jobs: build-deploy: runs-on: ubuntu-latest From 9a5968bce7f408d992ed6f3ce68f0d2aa8548ccd Mon Sep 17 00:00:00 2001 From: Josh Heyer Date: Thu, 16 Dec 2021 00:35:22 +0000 Subject: [PATCH 3/3] replicate workaround for main --- .github/workflows/deploy-main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-main.yml b/.github/workflows/deploy-main.yml index bed312a93cd..e3211ab18f6 100644 --- a/.github/workflows/deploy-main.yml +++ b/.github/workflows/deploy-main.yml @@ -5,6 +5,10 @@ on: - main workflow_dispatch: +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + jobs: build-deploy: runs-on: ubuntu-latest @@ -77,7 +81,7 @@ jobs: - name: Netlify deploy run: | - sudo npm install -g netlify-cli + sudo npm install -g netlify-cli@8.1.3 netlify deploy --dir=public --prod env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}