Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 3

Cannot pass inputs with local actions

Solved! Go to Solution.

I tried Docker container actions tutorial.

 

https://help.github.com/en/articles/creating-a-docker-container-action

 

Cannot work private action.

 

https://help.github.com/en/articles/creating-a-docker-container-action#example-using-a-private-actio...

 

I created simple sample. 

 

- public.yml

  - Use public action.

- main.yml

  - Use private action in `.github/actions`

- local.yml

  - Use private action in root, but cannot pass the inputs

 

https://github.com/sakebook/hello-world-docker-action

 

I think same main.yml and local.yml.

 

But the result is different.

 

- main.yml

  - https://github.com/sakebook/hello-world-docker-action/commit/8f237bd05e82b89525b9c343e17b21ec57037d8...

- local.yml

  - https://github.com/sakebook/hello-world-docker-action/commit/8f237bd05e82b89525b9c343e17b21ec57037d8...

 

local is cannnot pass `who-to-greet`

 

This is a bug? Or specification?

2 Replies
Solution
Copilot Lvl 3
Message 2 of 3

Re: Cannot pass inputs with local actions

Hi,

This is due to incorrect action.yml under root directory.

The action metadata file should be named as 'action.yml', there is an extra 's' in your file name.

Official doc:

https://help.github.com/en/articles/metadata-syntax-for-github-actions

Copilot Lvl 2
Message 3 of 3

Re: Cannot pass inputs with local actions

Holy clap!

 

I appreciate your help.