-
Notifications
You must be signed in to change notification settings - Fork 71
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
Fix/release process #289
Fix/release process #289
Conversation
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.
👍 !
.github/scripts/release.py
Outdated
|
||
def build_release_assets(version, repository): | ||
if os.path.exists(pkg_assets_build_path): | ||
os.system("rm -rf "+pkg_assets_build_path) |
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.
Why using rm to delete the package?
This will make this script only unix compatible.
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 was testing it in wsl because the runner is also unix...
I can also remove it. This is easy for local test, but is most likely not needed for workflow ( the path is clean
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.
You don´t need to remove that code, but instead use python apis to remove filesystem folders and files. That way we keep it cross platform.
Fix/release process
By creating this pull request you agree to the terms in CONTRIBUTING.md.
https://github.com/Infineon/.github/blob/master/CONTRIBUTING.md
--- DO NOT DELETE ANYTHING ABOVE THIS LINE ---
CONTRIBUTING.md also tells you what to expect in the PR process.
Description
Fix the release script error
Related Issue
release workflow is not working
Context
release workflow is not working , we have to revert the files in 3.1.0 release.
The problem is in release.py line 76 (old version), where the json arrays are incorrectly combined.