File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 19
19
pull-requests : write
20
20
contents : write
21
21
steps :
22
- - name : Generate a token
23
- id : generate_token
24
- uses : actions/create-github-app-token@v1
25
- with :
26
- app-id : ${{ secrets.E2E_APP_ID }}
27
- private-key : ${{ secrets.E2E_APP_PRIVATE_KEY }}
28
-
29
22
- name : Extract PR number from artifact
30
23
id : extract_pr_number
31
24
run : >
83
76
-F details_url="$(gh api "/repos/py-cov-action/python-coverage-comment-action/actions/jobs/${JOB_ID}" --jq '.html_url')"
84
77
--jq '"CHECK_RUN_ID=" + (.id | tostring)' > "${GITHUB_OUTPUT}"
85
78
env :
86
- GITHUB_TOKEN : ${{ steps.generate_token.outputs .token }}
79
+ GITHUB_TOKEN : ${{ github .token }}
87
80
HEAD_SHA : ${{ steps.extract_commit.outputs.COMMIT_ID }}
88
81
JOB_ID : ${{ steps.extract_job_id.outputs.JOB_ID }}
89
82
@@ -130,6 +123,6 @@ jobs:
130
123
-F conclusion=${JOB_STATUS}
131
124
-F status=completed
132
125
env :
133
- GITHUB_TOKEN : ${{ steps.generate_token.outputs .token }}
126
+ GITHUB_TOKEN : ${{ github .token }}
134
127
CHECK_RUN_ID : ${{ steps.create_check.outputs.CHECK_RUN_ID }}
135
128
JOB_STATUS : ${{ job.status }}
You can’t perform that action at this time.
0 commit comments