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

Fix/release process #289

Merged
merged 6 commits into from
Jul 22, 2024
Merged

Conversation

LinjingZhang
Copy link
Collaborator

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.

@LinjingZhang LinjingZhang requested a review from jaenrig-ifx July 11, 2024 12:44
Copy link
Member

@jaenrig-ifx jaenrig-ifx left a comment

Choose a reason for hiding this comment

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

👍 !


def build_release_assets(version, repository):
if os.path.exists(pkg_assets_build_path):
os.system("rm -rf "+pkg_assets_build_path)
Copy link
Member

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.

Copy link
Collaborator Author

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

Copy link
Member

@jaenrig-ifx jaenrig-ifx Jul 16, 2024

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.

.github/scripts/release.py Outdated Show resolved Hide resolved
@LinjingZhang LinjingZhang requested a review from jaenrig-ifx July 16, 2024 08:14
@LinjingZhang LinjingZhang merged commit f52f7b6 into Infineon:develop Jul 22, 2024
jaenrig-ifx pushed a commit to jaenrig-ifx/XMC-for-Arduino that referenced this pull request Jan 17, 2025
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.

2 participants