Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 17, 2026

The release workflow triggers twice on version bumps: once for the "Version Packages" PR merge, then again when changesets/action commits the version updates.

Changes

  • Skip workflow when github.actor is github-actions[bot]
  • Skip workflow when commit message contains "Version Packages"
jobs:
  release:
    if: github.actor != 'github-actions[bot]' && !contains(github.event.head_commit.message, 'Version Packages')

Workflow now runs only for human-initiated commits while allowing changesets to manage version bumps via PR.

Original prompt

貌似发版本的工作流冲突了,每次都发了两次版本


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Fix duplicate version releases in workflow Fix duplicate release workflow runs from changesets bot commits Jan 17, 2026
Copilot AI requested a review from hotlong January 17, 2026 02:15
@huangyiirene huangyiirene marked this pull request as ready for review January 17, 2026 04:35
@huangyiirene huangyiirene merged commit 566024b into main Jan 17, 2026
12 checks passed
@huangyiirene huangyiirene deleted the copilot/fix-release-version-issues branch January 17, 2026 04:35
@github-actions
Copy link
Contributor

📋 Changelog Preview

The following changes will be included in the next release:

[email protected] changeset /home/runner/work/objectql/objectql
changeset status --verbose

🦋 �[31merror�[39m Error: Failed to find where HEAD diverged from "main". Does "main" exist and it's synced with remote?
🦋 �[31merror�[39m at getDivergedCommit (/home/runner/work/objectql/objectql/node_modules/.pnpm/@changesets[email protected]/node_modules/@changesets/git/dist/changesets-git.cjs.js:63:11)
🦋 �[31merror�[39m at async getChangedFilesSince (/home/runner/work/objectql/objectql/node_modules/.pnpm/@changesets[email protected]/node_modules/@changesets/git/dist/changesets-git.cjs.js:189:22)
🦋 �[31merror�[39m at async Object.getChangedPackagesSinceRef (/home/runner/work/objectql/objectql/node_modules/.pnpm/@changesets[email protected]/node_modules/@changesets/git/dist/changesets-git.cjs.js:229:24)
🦋 �[31merror�[39m at async getVersionableChangedPackages (/home/runner/work/objectql/objectql/node_modules/.pnpm/@changesets+cli@2.29.8_@types[email protected]/node_modules/@changesets/cli/dist/changesets-cli.cjs.js:230:27)
🦋 �[31merror�[39m at async status (/home/runner/work/objectql/objectql/node_modules/.pnpm/@changesets+cli@2.29.8_@types[email protected]/node_modules/@changesets/cli/dist/changesets-cli.cjs.js:1051:27)
🦋 �[31merror�[39m at async run (/home/runner/work/objectql/objectql/node_modules/.pnpm/@changesets+cli@2.29.8_@types[email protected]/node_modules/@changesets/cli/dist/changesets-cli.cjs.js:1355:11)
 ELIFECYCLE  Command failed with exit code 1.

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.

3 participants