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

Release CI 从 v3.7.1 开始未能更新CHANGELOG.md #478

Closed
YDX-2147483647 opened this issue Apr 25, 2024 · 6 comments · Fixed by #485
Closed

Release CI 从 v3.7.1 开始未能更新CHANGELOG.md #478

YDX-2147483647 opened this issue Apr 25, 2024 · 6 comments · Fixed by #485
Assignees

Comments

@YDX-2147483647
Copy link
Collaborator

YDX-2147483647 commented Apr 25, 2024

https://github.com/BITNP/BIThesis/actions/workflows/release.yml 从 v3.7.1 开始未能更新CHANGELOG.md,因为main分支有保护,生成后不让直接提交。

## [3.7.0] - 2024-03-22

图片

Run git config user.name 'github-actions[bot]'
  git config user.name 'github-actions[bot]'
  git config user.email 'github-actions[bot]@users.noreply.github.com'
  set +e
  git add CHANGELOG.md
  git commit -m "Update changelog"
  git push https://***@github.com/BITNP/BIThesis.git main
  shell: /usr/bin/bash -e {0}
[main a632684] Update changelog
 1 file changed, 743 insertions(+), 839 deletions(-)
remote: error: GH006: Protected branch update failed for refs/heads/main.        
remote: error: Changes must be made through the merge queue        
To https://github.com/BITNP/BIThesis.git
 ! [remote rejected] main -> main (protected branch hook declined)
error: failed to push some refs to 'https://github.com/BITNP/BIThesis.git'

历史

  1. v3.7.1 / 54bbe79 删除了一个job。
  2. v3.7.2 / 53e9cee 加了 Update changelog,但后来只有一次在cliff-update分支成功运行,其它在main分支都被拦住了。
@YDX-2147483647 YDX-2147483647 self-assigned this Apr 25, 2024
@fky2015
Copy link
Contributor

fky2015 commented Apr 25, 2024

是的,我暂时没想好怎么处理

@YDX-2147483647
Copy link
Collaborator Author

YDX-2147483647 commented Apr 25, 2024

@fky2015
Copy link
Contributor

fky2015 commented Apr 26, 2024

可以,不过请搭配 auto-merge 一起使用。

YDX-2147483647 added a commit to YDX-2147483647/BIThesis that referenced this issue May 3, 2024
- `update_changelog` → `release_notes`以免混淆。
- `git commit` → PR 以绕开分支保护。

Fixes BITNP#478
YDX-2147483647 added a commit to YDX-2147483647/BIThesis that referenced this issue May 3, 2024
- `update_changelog` → `release_notes`以免混淆。
- `git commit` → PR 以绕开分支保护。

Fixes BITNP#478
YDX-2147483647 added a commit to YDX-2147483647/BIThesis that referenced this issue May 3, 2024
- `update_changelog` → `release_notes`以免混淆。
- `git commit` → PR 以绕开分支保护。

Fixes BITNP#478
YDX-2147483647 added a commit to YDX-2147483647/BIThesis that referenced this issue May 4, 2024
- `update_changelog` → `release_notes`以免混淆。
- `git commit` → PR 以绕开分支保护。

Fixes BITNP#478
github-merge-queue bot pushed a commit that referenced this issue May 4, 2024
- `update_changelog` → `release_notes`以免混淆。
- `git commit` → PR 以绕开分支保护。

Fixes #478
@fky2015
Copy link
Contributor

fky2015 commented May 4, 2024

那我们是不是可以发个新版本试验一下?

@YDX-2147483647
Copy link
Collaborator Author

好,你操作?

@YDX-2147483647 YDX-2147483647 reopened this May 4, 2024
@fky2015
Copy link
Contributor

fky2015 commented May 4, 2024

64479bb 牛牛牛!

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 a pull request may close this issue.

2 participants