File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ permissions:
3838env :
3939 BENCH_RUNS_SELFCHECK : 30
4040 BENCH_RUNS_SIMPLE : 50
41+ MARKER : <!-- marker -->
4142
4243jobs :
4344 get-target :
9899 ACTION : ${{ inputs.action }}
99100 ISSUE_TITLE : ${{ steps.get-issue.outputs.issue-title }}
100101
102+ - name : Report progress
103+ if : ${{ github.event_name == 'issues' || github.event_name == 'issue_comment' }}
104+ uses : actions-cool/issues-helper@v3
105+ with :
106+ actions : update-issue
107+ token : ${{ secrets.GITHUB_TOKEN }}
108+ update-mode : append
109+ body : |
110+ ${{ env.MARKER }}
111+
112+ Running ${{ steps.pr-number.outputs.action }} on #${{ steps.pr-number.outputs.pr }}...
113+
101114 - name : Report failure
102115 if : ${{ failure() && (github.event_name == 'issues' || github.event_name == 'issue_comment') }}
103116 uses : actions-cool/issues-helper@v3
@@ -410,3 +423,23 @@ jobs:
410423 ```
411424 ${{ needs.bench.outputs.result_run_simple_3 }}
412425 ```
426+
427+ clear-body :
428+ runs-on : ubuntu-latest
429+ name : Remove progress report from issue body
430+ if : |
431+ always() && !cancelled()
432+ && !github.event.issue.pull_request
433+ && (github.event_name == 'issues' || github.event_name == 'issue_comment')
434+ needs : [bench-report, diff]
435+ permissions :
436+ issues : write
437+ steps :
438+ - name : Clear body
439+ run : |
440+ gh issue view "$ISSUE" --json body | jq -r '.body' >body.txt
441+ sed -e 's/${{ env.MARKER }}/Q' body.txt >body.new.txt
442+ gh issue edit "$ISSUE" --body-file body.new.txt
443+ rm body.txt body.new.txt
444+ env :
445+ ISSUE : ${{ github.event.issue.number }}
You can’t perform that action at this time.
0 commit comments