-
-
Notifications
You must be signed in to change notification settings - Fork 509
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: Update release-x.yml #686
base: main
Are you sure you want to change the base?
Conversation
📝 WalkthroughWalkthrough本次变更修改了 GitHub Actions 工作流触发条件与部分任务执行逻辑。在 Changes
Sequence Diagram(s)sequenceDiagram
participant GH as GitHub事件
participant WF as 工作流
participant TJ as tweet任务
GH->>WF: 触发 create 事件
WF->>WF: 检查事件是否为 tag 且不含 'alpha'
alt 条件满足
WF->>TJ: 执行 tweet 任务
TJ->>GH: 发布推文
else 条件不满足
WF->>WF: 跳过 tweet 任务
end
Possibly related PRs
Suggested reviewers
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
WalkthroughThis pull request updates the Changes
🪧 TipsFor further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me. |
Bundle ReportBundle size has no change ✅ |
size-limit report 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #686 +/- ##
=======================================
Coverage 91.98% 91.98%
=======================================
Files 67 67
Lines 1484 1484
Branches 383 398 +15
=======================================
Hits 1365 1365
Misses 119 119 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/release-x.yml
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Cloudflare Pages
🔇 Additional comments (1)
.github/workflows/release-x.yml (1)
3-5
: 触发器更新:验证 "create" 事件的适用性当前工作流的触发器已修改为
create
事件。请检查该事件的 payload 是否包含后续任务所需的全部数据,并确保在所有预期场景(例如标签创建时)均能正常触发并执行工作流。
runs-on: ubuntu-latest | ||
if: ${{ github.event.ref_type == 'tag' && !contains(github.event.ref, 'alpha') }} | ||
steps: |
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.
条件判断与消息字段不匹配:修正上下文变量
在 tweet 任务中添加的条件判断确保仅当 github.event.ref_type
为 tag
且标签中不包含 "alpha" 时执行。然而,消息中仍旧使用 ${{ github.event.release.tag_name }}
和 ${{ github.event.release.html_url }}
,而这些字段在 create
事件的 payload 中可能不存在。建议修改消息内容,使用适用于 create
事件的变量(例如利用 ${{ github.ref }}
获取标签信息),以确保消息能够正确显示发布的标签及链接。
Deploying ant-design-x with
|
Latest commit: |
e011bd5
|
Status: | ✅ Deploy successful! |
Preview URL: | https://655ac007.ant-design-x.pages.dev |
Branch Preview URL: | https://afc163-patch-1.ant-design-x.pages.dev |
中文版模板 / Chinese template
🤔 This is a ...
🔗 Related Issues
💡 Background and Solution
📝 Change Log
Summary by CodeRabbit