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

Use github.action_path instead of donwloading the script from main branch #15

Merged
merged 1 commit into from Dec 27, 2021
Merged

Use github.action_path instead of donwloading the script from main branch #15

merged 1 commit into from Dec 27, 2021

Conversation

suzuki-shunsuke
Copy link
Contributor

Close #14

… main branch

https://docs.github.com/en/actions/learn-github-actions/contexts#github-context

> github.action_path string
> The path where your action is located.
> You can use this path to easily access files located in the same repository as your action.
> This attribute is only supported in composite actions.

* You don't have to download the script, because you can access to the script with `github.action_path`
* Downloading the script from main branch isn't good. main branch is unreleased and Even if you pin the Action's version, Action may be broken suddenly
@suzuki-shunsuke suzuki-shunsuke marked this pull request as draft December 27, 2021 06:12
@suzuki-shunsuke suzuki-shunsuke marked this pull request as ready for review December 27, 2021 06:12
@suzuki-shunsuke suzuki-shunsuke changed the title feat: use github.action_path instead of donwloading the script from main branch Use github.action_path instead of donwloading the script from main branch Dec 27, 2021
@shmokmt
Copy link
Owner

shmokmt commented Dec 27, 2021

@suzuki-shunsuke Nice suggestion. Thanks! 👍

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

Successfully merging this pull request may close these issues.

Use github.action_path instead of donwloading the script from main branch
2 participants