-
Notifications
You must be signed in to change notification settings - Fork 145
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
ci: tweet when release is published #667
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@jeasonstudio 大佬看看,这个是不是可以合啦 |
uses: nearform-actions/github-action-notify-twitter@v1 | ||
with: | ||
message: | | ||
🤖 Ant Design Web3 just released ${{ github.event.ref }} ✨🎊✨ Check out the full release note: https://github.com/ant-design/ant-design-web3/releases/tag/${{ github.event.ref }} |
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.
这里遗留一个疑问等这个 action 执行后看看效果,github.event.ref
是带 @
符号的,好像在 tweet 中会变成圈别人,展示不正常。
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.
可以换成 @ 这个就可以了,长得一样,但是不是一个
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.
如果是普通的 @ 肯定会有问题的
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.
但是这个 @ 是 release tag 里的,是不是应该在 ci 里做下 replace @thinkasany
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.
嗯,应该是在发布前做下替换
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.
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.
action 仓库:https://github.com/nearform-actions/github-action-notify-twitter
需要佬们配置一下secret中的key
最终这边的tag会替换
${{ github.event.ref }}
,🤖 Ant Design Web3 just released ${{ github.event.ref }} ✨🎊✨ Check out the full release note: https://github.com/ant-design/ant-design-web3/releases/tag/${{ github.event.ref }}
即:
🤖 Ant Design Web3 just released @ant-design/web3@1.8.0 ✨🎊✨ Check out the full release note:
https://github.com/ant-design/ant-design-web3/releases/tag/@ant-design/web3@1.8.0
参考来源:https://github.com/ant-design/ant-design/blob/master/.github/workflows/release-tweet.yml