Invalid type for `on`

Hi. I’ve run into a problem:
.github/workflows/main.yml : .github#L1
Invalid type for on

Here is the workflow. Thanks in advance
Edit: I’ve fixed this

Mind sharing what was wrong and how you fixed it with the community?

Also, your repository appears to be private (above links give me a 404 errors).

1 Like

It’s not private, I’ve changed my user name, deleted it and regenerate it with the same name (so Github don’t redirect, you can find it here: GitHub - cokaps016/GenZOC: A simple tool to generate your OpenCore EFI automatically.
The fix is just syntax problem:
This cause the problem (tags isn’t the child of push)

on:
  push:
    branches:
      - main
  tags:
      - v[0-9]+.[0-9]+.[0-9]+*

The way to fix this is easy, make tags into push child:

on:
  push:
    branches:
      - main
    tags:
      - v[0-9]+.[0-9]+.[0-9]+*
1 Like