workflow-dispatch icon indicating copy to clipboard operation
workflow-dispatch copied to clipboard

Not found with all valid parameters

Open hiteshbal91dp opened this issue 1 year ago • 1 comments

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.

hiteshbal91dp avatar Jul 27 '23 06:07 hiteshbal91dp

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

Bascy avatar Aug 18 '23 09:08 Bascy