Github Actions workflow file with typo

Hi all
I’m fairly new to Github Actions.
I committed a workflow file (in .github/workflows) which had a typo. Under the Actions tab I’m told that the file has an error at line 62 and can’t be executed. However if I fix the file and commit it again the workflow is not run again and I also cannot run it manually.
Any idea how to proceed. The repo can be found at https://github.com/esm-tools/esm_tools/actions?query=workflow%3A.github%2Fworkflows%2FCI-blogin-install-foci-default.yml
Any idea how to “fix” this workflow? If I try to do a “delete workflow run”, I’m directed to a http 500 error page.

@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 command lines,

    • if it only is a single line command, you can directly place the command and the ‘run’ key at the same line. For example:

      run: echo "There is only a single line."
      
    • if it is multiple command lines, you need to use the symbol ‘|’ to declare the multiple command lines. And the first command line also should be at its own line. For example:

      run: |
        echo "There is command line 1."
        echo "There is command line 2."
        . . .
        echo "There is command line N."
      

      In addition, you do not need to use the quotes to surround the whole command lines.

More details about workflow syntax, see “Workflow syntax for GitHub Actions”.

Please try to fix these syntax errors to see if the problem still exists.
The following is the workflow file I forked from yours, and I have fixed the syntax errors I can find. You can refer to it.

Thank you for your support. Yes once the syntax errors are removed, the actions are triggered again, and can also be run manually again. Thank you for putting me on the right track.