Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not found with all valid parameters #60

Open
hiteshbal91dp opened this issue Jul 27, 2023 · 1 comment
Open

Not found with all valid parameters #60

hiteshbal91dp opened this issue Jul 27, 2023 · 1 comment

Comments

@hiteshbal91dp
Copy link

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.

@Bascy
Copy link

Bascy commented Aug 18, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants