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

Make filenames defined in action config files be treated as relative to the action config file #1636

Merged
merged 3 commits into from Jan 4, 2024

Conversation

Ekrekr
Copy link
Contributor

@Ekrekr Ekrekr commented Jan 4, 2024

No description provided.

@Ekrekr Ekrekr requested a review from kolina January 4, 2024 11:31
// Users define file paths relative to action config path, but internally and in the
// compiled graph they are absolute paths.
actionConfig.fileName =
actionConfigsPath.substring(0, actionConfigsPath.length - "actions.yaml".length) +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: put actions.yaml in some constant.

Copy link
Contributor Author

@Ekrekr Ekrekr Jan 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair shout, I'll do this in a later follow up PR with all hardcoded filenames

@Ekrekr Ekrekr merged commit 63f042c into main_v3 Jan 4, 2024
4 checks passed
@Ekrekr Ekrekr deleted the relative-file-paths branch January 4, 2024 13:26
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.

None yet

2 participants