Skip to content

Run tests without commit - Buildbot try #25940

Answered by BrightRan
adiroiban asked this question in Actions
Discussion options

You must be logged in to vote

@adiroiban,

Do you know why using following conditions doesn’t work
linux_unicode_path:
runs-on: ubuntu-20.04
if: github.event.inputs.job == ‘’ || github.event.inputs.job == github.job

There are few points you may need to understand:

  1. The id of current job won’t be assigned to the property ‘github.job’ until the job starts up.
    When you use the expression ‘github.job’ on the job level if conditional, it will always return ‘null’ since the current job has not started up.
    So, you can only use the expression ‘github.job’ in the steps (include the step level if conditional) after the current job starts up.

  2. For the expression ‘github.event.inputs.job’, if the current workflow run is not tr…

Replies: 3 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
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants