Release CI 从 v3.7.1 开始未能更新`CHANGELOG.md`
YDX-2147483647 opened this issue · 6 comments
YDX-2147483647 commented
https://github.com/BITNP/BIThesis/actions/workflows/release.yml 从 v3.7.1 开始未能更新CHANGELOG.md
,因为main
分支有保护,生成后不让直接提交。
Line 17 in 3fd7b22
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'
历史
fky2015 commented
是的,我暂时没想好怎么处理
YDX-2147483647 commented
fky2015 commented
可以,不过请搭配 auto-merge 一起使用。
fky2015 commented
那我们是不是可以发个新版本试验一下?
YDX-2147483647 commented
好,你操作?