You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An expression can reference an event name, for example if: ${{ github.event_name == 'push' || github.event_name == 'release' }}.
As the events to which a workflow responds are always present at the top of the workflow, it should be possible to determine when an event name within an expression is redundant.
In this example, the workflow only responds to push events, however the expression refers to both push and pull_request events. This suggests that something is wrong somewhere. Either the workflow should be responding also to pull_request events or the expression needs to be changed to remove the second part of the expression.
The text was updated successfully, but these errors were encountered:
An expression can reference an event name, for example
if: ${{ github.event_name == 'push' || github.event_name == 'release' }}
.As the events to which a workflow responds are always present at the top of the workflow, it should be possible to determine when an event name within an expression is redundant.
Take the following workflow as an example:
In this example, the workflow only responds to
push
events, however the expression refers to bothpush
andpull_request
events. This suggests that something is wrong somewhere. Either the workflow should be responding also topull_request
events or the expression needs to be changed to remove the second part of the expression.The text was updated successfully, but these errors were encountered: