Docs Preview #1925
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: Docs Preview | |
on: [status] | |
jobs: | |
circleci_artifacts_redirector_job: | |
if: "${{ github.event.context == 'ci/circleci: Build Docs Preview' }}" | |
runs-on: ubuntu-latest | |
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 }} | |
artifact-path: 0/docs/_build/html/index.html | |
circleci-jobs: Build Docs Preview | |
job-title: Click here to see a preview of the documentation. | |
api-token: ${{ secrets.CIRCLECI_TOKEN }} | |
- name: Check the URL | |
if: github.event.status != 'pending' | |
run: | | |
curl --fail ${{ steps.step1.outputs.url }} | grep $GITHUB_SHA |