-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add fix wrong agent import command #165
Conversation
|
||
# Move files and directories from the versioned folder to the root action directory | ||
for item in temp_extract_path.rglob("*"): | ||
if item.is_file(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that there's a metadata json which should be ignored here too (not just the one from the agent package).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't see any while building zip and then extracting it but I guess it could happen in other scenarios, will include that exclusion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no real issue, the only problem is that this metadata file will become outdated as the user changes the code (the metadata is created in the zip when the action package is created and shouldn't be shown when it's extracted later on).
|
||
# Move files and directories from the versioned folder to the root action directory | ||
for item in temp_extract_path.rglob("*"): | ||
if item.is_file() and item.name != "metadata.json": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't the proper name of the json. I don't remember now the exact name, but you should be able to check it when you build the action package in the test (please also fix the test to check for this exclusion).
Stable release checklist:
python -m dev set-version {version}
/docs/changelog.md
with the changes for the releasePre-release checklist:
/docs/changelog.md
with the new changes.