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 version and rc in rc.yml #202

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

kevinjqliu
Copy link
Contributor

@kevinjqliu kevinjqliu commented Nov 13, 2024

Follow up to #199.
For the RC workflow running on a tag, there was an issue resulting in the wrong filename used for the tar.gz file, for example, apache-iceberg-go-0.1.0-rc1-rc1.tar.gz. Notice the extra -rc.

This is due to the parsing logic which is fixed in this PR.

For details, see https://github.com/apache/iceberg-go/actions/runs/11821595808/job/32936689238
where the Archive job's Archive step has the following

  env:
    VERSION: 0.1.0-rc1
    RC: 1

Tested in fork repo.
v0.1.0-rc1 release https://github.com/kevinjqliu/iceberg-go/releases/tag/v0.1.0-rc1
https://github.com/kevinjqliu/iceberg-go/actions/runs/11824564368/job/32946341965
Downloaded artifacts in https://github.com/kevinjqliu/iceberg-go/actions/runs/11824501122 and checked the sha256 file is correct

@github-actions github-actions bot added the INFRA label Nov 13, 2024
Comment on lines +54 to +55
echo "VERSION=${version}"
echo "RC=${rc}"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

added for debugging

Copy link
Member

@RussellSpitzer RussellSpitzer left a comment

Choose a reason for hiding this comment

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

Looks good to me, Had to re read the Bash Substituion manual.

Future note, may be good to not default to rc-100 and instead use the current git hash but not relevant to this PR

@RussellSpitzer RussellSpitzer merged commit 0921b84 into apache:main Nov 13, 2024
10 checks passed
@RussellSpitzer
Copy link
Member

Thanks @kevinjqliu for the PR and @zeroshade for reviewing!

@kevinjqliu kevinjqliu deleted the kevinjqliu/fix-rc-yml branch November 13, 2024 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants