使用仓库令牌生成readme
Some checks failed
Generate README based on repo name and commits / generate-readme (push) Failing after 11s
Some checks failed
Generate README based on repo name and commits / generate-readme (push) Failing after 11s
This commit is contained in:
parent
7103e23272
commit
484058e5db
@ -36,6 +36,8 @@ jobs:
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
- name: Commit and push changes
|
- name: Commit and push changes
|
||||||
|
env:
|
||||||
|
GIT_REPO_TOKEN: ${{ secrets.AUTOGENERATEREADME }} # 假设你已经将令牌存储为 GITHUB_TOKEN 机密
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "liyepan@linuxacme.com"
|
git config --local user.email "liyepan@linuxacme.com"
|
||||||
git config --local user.name "iorebuild"
|
git config --local user.name "iorebuild"
|
||||||
@ -44,5 +46,5 @@ jobs:
|
|||||||
echo "No changes to README.md. Skipping commit."
|
echo "No changes to README.md. Skipping commit."
|
||||||
else
|
else
|
||||||
git commit -m "Update README with recent commits"
|
git commit -m "Update README with recent commits"
|
||||||
git push
|
git push https://${GIT_REPO_TOKEN}@git.linuxacme.com/ActionDemo.git
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue
Block a user