I am using reusable workflow in GitHub Actions. Any idea why this workflow job in my feature.yml
file:
my-job:
runs-on: ubuntu-latest
uses: my-org/my-repo/.github/workflows/[email protected]
with:
app-command: synth
app-args: -c xpiKeyPath=/my/apikey
would give an error like this:
The workflow is not valid. .github/workflows/feature.yml (Line: 10,
Col: 5): Unexpected value ‘uses’ .github/workflows/feature.yml (Line:
10, Col: 5): Unexpected value ‘with’
1
Check here how to call a reusable workflow, you need to remove the runs-on
, for example:
jobs:
call-workflow-passing-data:
uses: octo-org/example-repo/.github/workflows/reusable-workflow.yml@main
with:
config-path: .github/labeler.yml
secrets:
envPAT: ${{ secrets.envPAT }}
Recognized by CI/CD Collective