CircleCI artifacts redirector #19053
This file contains hidden or 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_documentation_redirection: | |
| runs-on: ubuntu-latest | |
| # For testing this action on a fork, remove the "github.repository =="" condition. | |
| if: "github.repository == 'mind-inria/hidimstat' && github.event.context == 'ci/circleci: build-documentation'" | |
| name: Run CircleCI documentation redirection | |
| steps: | |
| - name: GitHub Action step | |
| uses: larsoner/circleci-artifacts-redirector-action@master | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| api-token: ${{ secrets.CIRCLE_CI }} | |
| artifact-path: 0/documentation/index.html | |
| circleci-jobs: build-documentation | |
| job-title: Check the rendered docs here! | |
| circleci_artifact_tests_reports: | |
| runs-on: ubuntu-latest | |
| # For testing this action on a fork, remove the "github.repository =="" condition. | |
| if: "github.repository == 'mind-inria/hidimstat' && github.event.context == 'ci/circleci: get-tests-reports'" | |
| name: Run CircleCI artifacts reports | |
| steps: | |
| - name: GitHub Action step | |
| uses: larsoner/circleci-artifacts-redirector-action@master | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| api-token: ${{ secrets.CIRCLE_CI }} | |
| artifact-path: 0/documentation/test_reports/index.html | |
| circleci-jobs: get-tests-reports | |
| job-title: Check the reports of the tests here! | |
| circleci_change_PR: | |
| runs-on: ubuntu-latest | |
| # For testing this action on a fork, remove the "github.repository =="" condition. | |
| if: "github.repository == 'mind-inria/hidimstat' && github.event.context == 'ci/circleci: build-documentation'" | |
| name: Run CircleCI change redirection | |
| steps: | |
| - name: GitHub Action step | |
| uses: larsoner/circleci-artifacts-redirector-action@master | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| api-token: ${{ secrets.CIRCLE_CI }} | |
| artifact-path: 0/documentation/_changed.html | |
| circleci-jobs: build-documentation | |
| job-title: Check change in the PR! |