From fa56649473f9a546b29ab525500834bf523a1d22 Mon Sep 17 00:00:00 2001 From: Leah Wasser Date: Mon, 8 Jan 2024 19:22:34 -0700 Subject: [PATCH 1/7] Fix: redirect build --- .github/workflows/artifact_redirect.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/artifact_redirect.yml b/.github/workflows/artifact_redirect.yml index 37d228f7..a8cf430f 100644 --- a/.github/workflows/artifact_redirect.yml +++ b/.github/workflows/artifact_redirect.yml @@ -11,7 +11,7 @@ jobs: circleci_artifacts_redirector_job: runs-on: ubuntu-latest # For testing this action on a fork, remove the "github.repository =="" condition. - if: "github.repository == 'pyOpenSci/python-package-guide' && github.event.context == 'ci/circleci: build'" + if: "github.repository == 'pyOpenSci/python-package-guide' && github.event.context == 'ci/circleci: build-book'" permissions: statuses: write name: Run CircleCI artifacts redirector @@ -23,5 +23,5 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} api-token: ${{ secrets.CIRCLECI_TOKEN }} artifact-path: 0/_site/index.html - circleci-jobs: build + circleci-jobs: build-book job-title: Check the rendered website build here! From c9795dfb8e61247752ce3b7da5c8b0594e4d46cf Mon Sep 17 00:00:00 2001 From: Leah Wasser Date: Mon, 8 Jan 2024 19:27:19 -0700 Subject: [PATCH 2/7] Update circle ci build name --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 13ff348b..170abcec 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,6 +1,6 @@ version: 2.1 jobs: - build_book: + build-book: docker: - image: cimg/python:3.9 steps: From 91cbc651eca1bdf976bc367f91badd04181d47a7 Mon Sep 17 00:00:00 2001 From: Leah Wasser Date: Mon, 8 Jan 2024 19:29:08 -0700 Subject: [PATCH 3/7] Add concurrency checks --- .github/workflows/artifact_redirect.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/artifact_redirect.yml b/.github/workflows/artifact_redirect.yml index 668674dd..5fcb37af 100644 --- a/.github/workflows/artifact_redirect.yml +++ b/.github/workflows/artifact_redirect.yml @@ -1,5 +1,8 @@ name: CircleCI artifacts redirector -on: [status] + +concurrency: + group: docs-preview-${{ github.ref }} + cancel-in-progress: true jobs: circleci_artifacts_redirector_job: From 99eb2ec3e55a8269978df8d1ff61b36a80a6c661 Mon Sep 17 00:00:00 2001 From: Leah Wasser Date: Mon, 8 Jan 2024 19:29:59 -0700 Subject: [PATCH 4/7] Update .github/workflows/artifact_redirect.yml --- .github/workflows/artifact_redirect.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/artifact_redirect.yml b/.github/workflows/artifact_redirect.yml index 5fcb37af..ec0add23 100644 --- a/.github/workflows/artifact_redirect.yml +++ b/.github/workflows/artifact_redirect.yml @@ -21,4 +21,4 @@ jobs: api-token: ${{ secrets.CIRCLECI_TOKEN }} artifact-path: 0/html/index.html circleci-jobs: build-book - job-title: Check the rendered book here! + job-title: View rendered book here! From 94c2cdec22286cb70dca8f0a8430a3aecf265010 Mon Sep 17 00:00:00 2001 From: Leah Wasser Date: Mon, 8 Jan 2024 19:31:40 -0700 Subject: [PATCH 5/7] Fix: circle ci build name --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 170abcec..a22645a5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,6 +22,6 @@ jobs: # Tell CircleCI to use this workflow when it builds the site workflows: version: 2 - build_book: + build-book: jobs: - - build_book + - build-book From 1f30db9a015b692ef47188684631dea866e3ccb7 Mon Sep 17 00:00:00 2001 From: Leah Wasser Date: Mon, 8 Jan 2024 19:37:26 -0700 Subject: [PATCH 6/7] Fix status --- .github/workflows/artifact_redirect.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/artifact_redirect.yml b/.github/workflows/artifact_redirect.yml index ec0add23..21d6667a 100644 --- a/.github/workflows/artifact_redirect.yml +++ b/.github/workflows/artifact_redirect.yml @@ -1,4 +1,5 @@ name: CircleCI artifacts redirector +on: [status] concurrency: group: docs-preview-${{ github.ref }} From 89c15f5cd97a1614275b80fa559d17a10f1baaae Mon Sep 17 00:00:00 2001 From: Leah Wasser Date: Mon, 8 Jan 2024 19:44:08 -0700 Subject: [PATCH 7/7] Final try then i'm donezo --- .github/workflows/artifact_redirect.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/artifact_redirect.yml b/.github/workflows/artifact_redirect.yml index 21d6667a..fbf70ade 100644 --- a/.github/workflows/artifact_redirect.yml +++ b/.github/workflows/artifact_redirect.yml @@ -9,7 +9,7 @@ jobs: circleci_artifacts_redirector_job: runs-on: ubuntu-latest # For testing this action on a fork, remove the "github.repository =="" condition. - if: "github.repository == 'pyOpenSci/python-package-guide' && github.event.context == 'ci/circleci: build-book'" + if: github.event.context == 'ci/circleci: build-book'" permissions: statuses: write name: Run CircleCI artifacts redirector