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

Post release to Discord in CI #3855

Merged

Conversation

armanbilge
Copy link
Member

@armanbilge armanbilge commented Sep 26, 2023

Follow-up to #3711 that uses the configured secret.

data="{\"content\":\"https://github.com/typelevel/cats-effect/releases/tag/v$1\"}"
data="{\"content\":\"https://github.com/typelevel/cats-effect/releases/tag/$1\"}"
Copy link
Member Author

Choose a reason for hiding this comment

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

Seems easier to just pass the tag.

Copy link
Member

Choose a reason for hiding this comment

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

Well, the reason I didn't do it that way is because all the other scripts take a version number unprefixed by v, and it's going to get very confusing if we make it inconsistent.

Copy link
Member

@djspiewak djspiewak left a comment

Choose a reason for hiding this comment

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

Definitely easier here to just pass tag, but it's also inconsistent with the other scripts.

@armanbilge
Copy link
Member Author

Presumably we eventually want to run the other scripts in CI too? We're just going to butt heads with this again. It's easier to pass a tag in GHA than it is to do string manipulation.

Meanwhile, the scripts themselves can easily strip the v prefix.

@djspiewak
Copy link
Member

Presumably we eventually want to run the other scripts in CI too? We're just going to butt heads with this again. It's easier to pass a tag in GHA than it is to do string manipulation.

That's fair. Can we change the other scripts then at the same time? This is exactly the sort of stuff that gets really confusing if we aren't strict about it.

Comment on lines +14 to +15
old_version="${1#v}"
new_version="${2#v}"
Copy link
Member

Choose a reason for hiding this comment

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

Oooooh, fancy.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fancy? I feel dirty 😩

@armanbilge armanbilge merged commit 40f6619 into typelevel:series/3.5.x Oct 4, 2023
28 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants