Open GMZwinge opened 8 months ago
Just to make sure I understand this correctly, the config file you want to use does not live in the repo that calls the action, correct? The repo calls your action, whose repo contains the config? How about using a remote config link or a GitHub repo config if it is private?
@thehanimo That is correct. The repo of the workflow that calls my action does not contain the config file. The config file lives in the repo containing my called action that calls your action. A remote config link or a GitHub repo config would probably works, but it's more complicated and it defeats the purpose of ${{ github.action_path }}
that can be used to access files located in the same repository as the action
according to github.action_path
in github context.
To not break backward compatibility, there could be a new input named for example absolute_configuration_path
that to handle the use of ${{ github.action_path }}
.
I am trying to encapsulate the config file with my own shared action that calls your action. My shared action includes my config file that is passes to your action. That way, multiple repos can call my shared action to check PR title consistently.
For this, I would like my action to call your action like this:
where
pr-title-checker-config.json
is in the same location as myaction.yaml
. The actionthehanimo/pr-title-checker
seems to prefix thelocal_configuration_path
with the path to the folder of the workflow calling my shared action. The output is:The workaround is to use this: