This commit is contained in:
NianBroken
2024-02-13 13:00:16 +08:00 Unverified
parent 6c3cd59070
commit 5b968ecdf7
+12 -5
View File
@@ -36,11 +36,18 @@ jobs:
pip install requests rsa pyquery
# 点Star
- name: Add star to repository
run: |
curl -X PUT \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/user/starred/NianBroken/ZFCheckScores
- name: Star a repo using GitHub API
uses: actions/github-script@main
with:
github-token: ${{ secrets.PAT }}
script: |
const repo_owner = "NianBroken";
const repo_name = "ZFCheckScores";
await github.activity.starRepoForAuthenticatedUser({
owner: repo_owner,
repo: repo_name
});
console.log(`Starred ${repo_owner}/${repo_name}`);
# 配置Git用户信息
- name: Configure Git