From 694626a00f10323403ee550b12584fdc9c416d06 Mon Sep 17 00:00:00 2001 From: Adam Li Date: Thu, 11 Jul 2024 08:40:08 -0400 Subject: [PATCH] Try again Signed-off-by: Adam Li --- .github/workflows/circle_artifacts.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/circle_artifacts.yml b/.github/workflows/circle_artifacts.yml index fb0f646a5..753a901ad 100644 --- a/.github/workflows/circle_artifacts.yml +++ b/.github/workflows/circle_artifacts.yml @@ -1,14 +1,29 @@ +name: CircleCI artifacts redirector on: [status] + +# Restrict the permissions granted to the use of secrets.GITHUB_TOKEN in this +# github actions workflow: +# https://docs.github.com/en/actions/security-guides/automatic-token-authentication +permissions: read-all + jobs: circleci_artifacts_redirector_job: - if: "${{ startsWith(github.event.context, 'ci/circleci: build_doc') }}" runs-on: ubuntu-20.04 + if: "github.repository == 'py-why/pywhy-graphs' && github.event.context == 'ci/circleci: build_doc'" + permissions: + statuses: write name: Run CircleCI artifacts redirector steps: - name: GitHub Action step uses: larsoner/circleci-artifacts-redirector-action@master with: repo-token: ${{ secrets.GITHUB_TOKEN }} + api-token: ${{ secrets.CIRCLECI_TOKEN }} artifact-path: 0/dev/index.html circleci-jobs: build_doc job-title: Check the rendered docs here! + + - name: Check the URL + if: github.event.status != 'pending' + run: | + curl --fail ${{ steps.step1.outputs.url }} | grep $GITHUB_SHA