Skip to content

Commit 5f836f2

Browse files
authored
Fix: circle ci redirect build update (#158)
I don't think this is working yet but am not sure why it's just skipping now.
1 parent 4c46795 commit 5f836f2

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 2.1
22
jobs:
3-
build_book:
3+
build-book:
44
docker:
55
- image: cimg/python:3.9
66
steps:
@@ -22,6 +22,6 @@ jobs:
2222
# Tell CircleCI to use this workflow when it builds the site
2323
workflows:
2424
version: 2
25-
build_book:
25+
build-book:
2626
jobs:
27-
- build_book
27+
- build-book

.github/workflows/artifact_redirect.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
name: CircleCI artifacts redirector
22
on: [status]
33

4+
concurrency:
5+
group: docs-preview-${{ github.ref }}
6+
cancel-in-progress: true
7+
48
jobs:
59
circleci_artifacts_redirector_job:
610
runs-on: ubuntu-latest
711
# For testing this action on a fork, remove the "github.repository =="" condition.
8-
if: "github.repository == 'pyOpenSci/python-package-guide' && github.event.context == 'ci/circleci: build_book'"
12+
if: github.event.context == 'ci/circleci: build-book'"
913
permissions:
1014
statuses: write
1115
name: Run CircleCI artifacts redirector
@@ -17,5 +21,5 @@ jobs:
1721
repo-token: ${{ secrets.GITHUB_TOKEN }}
1822
api-token: ${{ secrets.CIRCLECI_TOKEN }}
1923
artifact-path: 0/html/index.html
20-
circleci-jobs: build
24+
circleci-jobs: build-book
2125
job-title: View rendered book here!

0 commit comments

Comments
 (0)