Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

doc: Explain differencs in CWD when run in a composite action#368

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
dekimsey wants to merge1 commit intoactions:main
base:main
Choose a base branch
Loading
fromdekimsey:doc-caveat-path-in-composite-actions

Conversation

dekimsey
Copy link

@dekimseydekimsey commentedApr 17, 2023
edited
Loading

This documents an easy to make mistake regarding how to require a resource from the action's source. When a relative
path is used, the CWD is the workflow's not the composite action's. This surfaces to calling workflows as aMODULE_NOT_FOUND error.

With respect to the code-sample, ideally we'd use thegithub.action_path (or soon,github.host-workspace) context in our example. But untilactions/runner#2517 is completed, at this time it's safer to useprocess.env.GITHUB_ACTION_PATH which is correct regardless of how the action is invoked.

This documents an easy to make mistake regarding howto require a resource from the action's source. When a relativepath is used, the CWD is the workflow's not the compositeaction's. This surfaces to calling workflows as a`MODULE_NOT_FOUND` error.
@kf6kjg
Copy link

Looks like it's time for an update of this PR :)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@dekimsey@kf6kjg

[8]ページ先頭

©2009-2025 Movatter.jp