更新 .gitea/workflows/auto_join.yaml
Process Python Script on PR / process-python (push) Failing after 3s
Process Python Script on PR / process-python (push) Failing after 3s
This commit is contained in:
@@ -56,13 +56,13 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 使用默认的 GITHUB_TOKEN
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 使用默认的 GITHUB_TOKEN
|
||||||
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
||||||
run: |
|
run: |
|
||||||
COMMENT_BODY="test"
|
COMMENT_BODY="您已加入, 请[点这里继续](https://git.intcplab.cn/class)"
|
||||||
curl -s -X POST \
|
curl -s -X POST \
|
||||||
-H "Authorization: token $GITHUB_TOKEN" \
|
-H "Authorization: token $GITHUB_TOKEN" \
|
||||||
-H "Accept: application/json" \
|
-H "Accept: application/json" \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
$API_URL/repos/${{ github.repository }}/issues/$ISSUE_NUMBER/comments \
|
$API_URL/repos/${{ github.repository }}/issues/$ISSUE_NUMBER/comments \
|
||||||
-d '{"body": "$COMMENT_BODY"}'
|
-d "{\"body\": \"$COMMENT_BODY\"}"
|
||||||
|
|
||||||
- name: Close issue
|
- name: Close issue
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user