workflow-dispatch
workflow-dispatch copied to clipboard
"Error: not found" when triggering workflow in another repo
Repo org/A has this:
uses: benc-uk/workflow-dispatch@v1
with:
workflow: CI
token: ${{ secrets.WORKFLOW_PAT }}
inputs: '{ "blah": "foo", "blurf": "bar" }'
repo: org/B
When the workflow runs, I get this output:
Workflow id is: 4336344
Error: Not Found
I think this was caused because the user that owned WORKFLOW_PAT had Read access instead of Write access.
It would be great if this action could provide better diagnostic output in that case.
I confirm, I had the same problem
To be more precise, the user owning the WORKFLOW_PAT must have write access on repository owning the workflow
Thanks you both for leaving a comment, the lack of write was my problem as well. :)
Overall, I went with a more simple approach:
- run: gh workflow run --repo ${{ env.TEST_REPOSITORY }} ${{ env.TEST_WORKFLOW }}
env:
GITHUB_TOKEN: ${{ secrets.AUTH_TOKEN_WORKFLOW_DISPATCH }}
Hi All , am facing issue with dispatch workflow with inputs . not understand where i missed . can somebody please suggest me is there other to trigger with input Run benc-uk/workflow-dispatch@v1 Error: Not Found