workflow-dispatch
workflow-dispatch copied to clipboard
Not found with all valid parameters
Hi Team,
Following is my configuration which has all the required params but still getting not found with following error.
- name: Trigger Automation Workflow
uses: benc-uk/workflow-dispatch@v1
with:
token: ${{ secrets.PAT_GITHUB }}
workflow: 'automation.yml'
ref: 'feat/automation-cicd'
repo: ${{ github.repository_owner }}/${{ vars.AUTOMATION_REPOSITORY_NAME }}
inputs: '{"service": "config","env": "${{ env.QA_ENV }}"}'
Following is output that I am getting,
Unable to find workflow 'automation.yml' in ORG/REPO 😥
Anything I am missing here?, I have file named "automation.yml" in branch "feat/automation-cicd" in directory "/.github/workflows" in my repo but still it is giving 404.
I ran into this same problem, solution is to create a yml with the same name in your default branch.
Apparently the action only checks the default branch of the repo for existence but uses the file in the provided ref to execute it