Files
learning-weekly/.cnb.yml
eryajf c9d289eac2 ci: 移除设置 token 步骤
- 删除了 .cnb.yml 文件中的 set token 步骤
- 该步骤使用了 tencentcom/git-set-credential 镜像来设置 Git 凭证
- 移除这一步骤可能是因为不再需要使用 token 进行身份验证
2025-04-15 21:59:21 +08:00

27 lines
835 B
YAML

main:
push:
- ifModify:
- "!(learning-weekly.xml)"
stages:
- name: generate rss
script: |
./gorss --root ./docs > learning-weekly.xml
- name: commit
image: tencentcom/git-commit:latest
settings:
add:
- learning-weekly.xml
commitMessage: "commit by ci"
pushCurrent: true
- name: sync to github
image: tencentcom/git-sync
imports: https://cnb.cool/eryajf/build-env/-/blob/main/env.yaml
settings:
target_url: https://github.com/eryajf/Learning-Weekly.git
auth_type: https
git_email: 'github-actions[bot]@users.noreply.github.com'
username: ${GIT_USERNAME}
password: ${GIT_ACCESS_TOKEN}
branch: main