The workflow is not valid. .github/workflows/main.yml: Expected format {org}/{repo}[/path]@ref. Actual 'actions/checkout' Input string was not in a correct format #25655
-
I built a container action in a repo:
This repo contains an When I attempt to checkout this container action I get an error message:
Here is
When I push this I get the error above. Presumably there’s an error with this piece, line 9 is
How can I correctly tell my main.yml to checkout the container action I created over at |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
This is the key part of the error message:
|
Beta Was this translation helpful? Give feedback.
-
Hi @airtower-luna thanks for the info, I like the idea of using a commit sha and I updated my line from this:
To this:
I got the exact same error message 😕 While I’m learning this I didn’t want to use a version tag. Is the syntax incorrect here for using a commit sha? |
Beta Was this translation helpful? Give feedback.
-
The error message isn’t about the |
Beta Was this translation helpful? Give feedback.
The error message isn’t about the
repository
input toactions/checkout
, it’s about theuses: actions/checkout
line. You need to add the ref of actions/checkout that you want to use.