scientific-python / circleci-artifacts-redirector-action

GitHub Action to add a GitHub status link to a CircleCI artifact.
MIT License
15 stars 9 forks source link

The action doesn't work in our project #26

Open akihironitta opened 2 years ago

akihironitta commented 2 years ago

First of all, thank you so much for creating this very useful action!


We're trying to utilise this action, but it doesn't work. Would it be possible for you to point out any possible causes making this action not working in our setting?

Following the README.md, I see its debug-level log by enabling ACTIONS_STEP_DEBUG=true, but I don't see any relevant information there:

Our workflow file in master:

on: [status]
jobs:
  circleci_artifacts_redirector_job:
    runs-on: ubuntu-20.04
    steps:
    - uses: larsoner/circleci-artifacts-redirector-action@master
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}
        artifact-path: 0/html/index.html
        circleci-jobs: build-Docs
        job-title: Check the rendered docs here!

https://github.com/PyTorchLightning/pytorch-lightning/blob/a6e9bc2943bf2c82036e31a4948bd8caa54957ee/.github/workflows/docs-link.yml

Our CircleCI job that generates artifacts: https://github.com/PyTorchLightning/pytorch-lightning/blob/a6e9bc2943bf2c82036e31a4948bd8caa54957ee/.circleci/config.yml#L162

Any help is welcome. Thank you in advance.

larsoner commented 2 years ago

Your circleci workflow appears to be named build-docs, even though the job is named build-Docs. Can you try the all-lower version? I guess our var should be named circleci-workflows: rather than circleci-jobs since only workflow statuses are reported (and hence it's what we use).

At least I hope that's the issue!