Skip to content

Can't view log for failed action #25596

Answered by wipe2238
cmyr asked this question in Actions
Discussion options

You must be logged in to vote

There’s no logs to see, it’s just wrong status set. Click.

What you can do before fix, is to change your “if” in a way that tests will be done by shell, and add extra variable to “env” context if all conditions are satisfied.

steps:
- name: Check Things
run: |
         if ["${{ github.event_name }}" == "this"] || ["something" == "else"]; then
            echo ::set-env name=RUN_JOB::true
         fi
  shell: bash

Next, update all other steps with extra “if” checking environment variable:

- name: Do Things
  if: env.RUN_JOB == 'true'
  run: things.exe

You’ll get old. behavior (no spam if job shouldn’t run) at a price of running workflow for a second or two for each trigger. Easy to rever…

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
Labels
None yet
2 participants