add
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user