add
This commit is contained in:
@@ -36,11 +36,18 @@ jobs:
|
|||||||
pip install requests rsa pyquery
|
pip install requests rsa pyquery
|
||||||
|
|
||||||
# 点Star
|
# 点Star
|
||||||
- name: Add star to repository
|
- name: Star a repo using GitHub API
|
||||||
run: |
|
uses: actions/github-script@main
|
||||||
curl -X PUT \
|
with:
|
||||||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
github-token: ${{ secrets.PAT }}
|
||||||
https://api.github.com/user/starred/NianBroken/ZFCheckScores
|
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用户信息
|
# 配置Git用户信息
|
||||||
- name: Configure Git
|
- name: Configure Git
|
||||||
|
|||||||
Reference in New Issue
Block a user