jobs.steps.uses can refer to action defined over a public repo, docker, etc.
If action defined over a subdir you can refer to it like:
jobs: my_first_job: steps: - name: My first step uses: actions/aws/ec2@main
But this fails if
path/to/action is actually a git sub-module to the repo defining the action.
I get following error like
Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under '/home/runner/work/_actions/PuneethaPai/checkout/submodule/.github/actions/checkout'. Did you forget to run actions/checkout before running your local action?.
So I think when action is defined in a public repo, git-runner clones it, but doesn’t clone the sub-modules defined in them. Hence I am getting above error.
Workaround is to check-in the whole action code in the path, but it’s not a best way when you have advantages of adding it as sub-module thingy.