Skip to content

Github Actions workflow file with typo #26086

Answered by BrightRan
seb-wahl asked this question in Actions
Discussion options

You must be logged in to vote

@seb-wahl,

I check your workflow file and find few syntax errors below:

  1. I see you set two ‘push’ event with different configurations in the same workflow.
    When using the ‘on’ key to set triggers, an event only can be used once in the same workflow, you can’t use the same event multiple times.
    If you want to a same event can trigger workflows with different configurations, you need to setup a workflow for each configuration, instead of using only one workflow.

  2. The key ‘on’ is a keyword of the workflow syntax, you should not surround it with any other symbols (such as quotes or brackets). It is followed by the symbol colon (:).

  3. When you use the ‘run’ key to set a step to run some comm…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

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