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

chore(releases): compute the next train version in gh action #15373

Merged
merged 1 commit into from
May 25, 2023

Conversation

chenba
Copy link
Contributor

@chenba chenba commented May 24, 2023

No description provided.

@chenba chenba requested a review from a team as a code owner May 24, 2023 18:33

- name: Compute new version number
run: |
versionNumber=$(git tag -l --sort=version:refname | grep -v '-' | tail -1 | awk '{print $2 + 1}' FS='.')
Copy link
Member

Choose a reason for hiding this comment

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

how does that FS bit work? Is that a interpreted as a parameter to awk?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it's the regex on which to split the string.

@chenba chenba force-pushed the gh-release-auto-version branch from 34db5e3 to 84c2510 Compare May 25, 2023 12:53
@chenba chenba merged commit b698817 into main May 25, 2023
@chenba chenba deleted the gh-release-auto-version branch May 25, 2023 13:33
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