Skip to content

How to access github actions log of current run from a later step/job #27097

Answered by jsoref
david-gang asked this question in Actions
Discussion options

You must be logged in to vote

Sample (not actually tested; always validate scripts before randomly running them in your own trusted environment; …):

- name: Gradle clean
   run: (./gradlew build 2>&1) | tee /tmp/gradle.out
- name: Analyze error
  if: failure()
  run: python3 ./analyze_and_slack_error.py /tmp/gradle.out

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
3 participants