So I'm testing something where I have a main workflow which I want to call another workflow. This is just a simple test I'm doing. workflow 1:
name: main workflow
on: [push, pull_request]
jobs:
call-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: test
uses: ./.github/workflows/test.yaml
So I want my main workflow to call the test workflow
Test workflow:
name: test workflow
on: workflow_call
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: test
run: echo "test"
But for some reason I keep getting this error.
Error: Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under '/home/runner/work/internship2023-solarstreaming/internship2023-solarstreaming/.github/workflows/test.yaml'. Did you forget to run actions/checkout before running your local action?
All help is greatly appreciated!