CircleCI artifacts redirector #5791
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
statuses: write | |
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/pyopensci.github.io' && github.event.context == 'ci/circleci: build'" | |
permissions: | |
statuses: write | |
name: Run CircleCI artifacts redirector | |
steps: | |
- name: GitHub Action step | |
id: step1 | |
uses: larsoner/circleci-artifacts-redirector-action@master | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
api-token: ${{ secrets.CIRCLECI_TOKEN }} | |
artifact-path: 0/_site/index.html | |
circleci-jobs: build | |
job-title: Check the rendered website build here! |