mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-02 03:50:45 +08:00
workflow update
This commit is contained in:
parent
66916dabf2
commit
fb1d8577a6
1 changed files with 19 additions and 9 deletions
28
.github/workflows/comment-failed-pr.yml
vendored
28
.github/workflows/comment-failed-pr.yml
vendored
|
@ -9,13 +9,23 @@ jobs:
|
|||
on-failure:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/github-script@v5
|
||||
- name: Download workflow artifact
|
||||
uses: dawidd6/action-download-artifact@v2.11.0
|
||||
with:
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
github.rest.issues.createComment({
|
||||
issue_number: context.issue.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
body: 'The PR check action failed. Please review the logs and make the necessary changes.' + context.payload.workflow_run.html_url
|
||||
})
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
workflow: peek_icons.yml
|
||||
run_id: ${{ github.event.workflow_run.id }}
|
||||
- name: Read the pr_num file
|
||||
id: pr_num_reader
|
||||
uses: juliangruber/read-file-action@v1.0.0
|
||||
with:
|
||||
path: ./pr_num/pr_num.txt
|
||||
- name: Create comment
|
||||
uses: jungwinter/comment@v1
|
||||
id: create
|
||||
with:
|
||||
type: create
|
||||
body: |
|
||||
"The PR check action failed. Please review the logs and make the necessary changes." + context.payload.workflow_run.html_url
|
||||
issue_number: ${{ steps.pr_num_reader.outputs.content }}
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
Loading…
Reference in a new issue