Skip to content

GitHub Actons - url to specific line in logs #26810

Answered by Tony763
Tony763 asked this question in Actions
Discussion options

You must be logged in to vote

Solved. I had to use GitHub API.

First I run pylint with name and id set.

# Linters - pylint
    - name: pylint
      if: always()
      uses: ricardochaves/python-lint@v1.4.0
      id: pylint
      with:
        use-pylint: true
        use-pycodestyle: false
        use-flake8: false
        use-black: false
        use-mypy: false
        use-isort: false
        extra-pylint-options: ""

With curl I access information from GitHub API and parse them with jq.
Returned JSON contain list of jobs runned in repository and specific run selected by ${GITHUB_RUN_ID.

I loop trough list and check if contained field name is same as wanted by ${GITHUB_JOB}
When found, I store field id in ${{ LOG_I…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant