mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-30 10:38:27 +08:00
ci: update ci-failure-comment workflow (@fehmer) (#5632)
This commit is contained in:
parent
deeea0fb78
commit
29627fd0d5
1 changed files with 4 additions and 9 deletions
13
.github/workflows/ci-failure-comment.yml
vendored
13
.github/workflows/ci-failure-comment.yml
vendored
|
@ -26,13 +26,8 @@ jobs:
|
|||
path: ./pr_num/pr_num.txt
|
||||
|
||||
- name: Create comment
|
||||
uses: actions/github-script@v6
|
||||
uses: peter-evans/create-or-update-comment@v4
|
||||
with:
|
||||
github-token: ${{ secrets.API_TOKEN }}
|
||||
script: |
|
||||
github.rest.issues.createComment({
|
||||
issue_number: ${{ steps.pr_num_reader.outputs.content }},
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
body: 'Continuous integration check(s) failed. Please review the failing check\'s logs and make the necessary changes. ' + context.payload.workflow_run.html_url
|
||||
})
|
||||
issue-number: ${{ steps.pr_num_reader.outputs.content }}
|
||||
body: |
|
||||
Continuous integration check(s) failed. Please review the [failing check\'s logs](${{ github.event.workflow_run.html_url }}) and make the necessary changes.
|
||||
|
|
Loading…
Add table
Reference in a new issue