Skip to content

Commit e7ce2f0

Browse files
committed
Fix null added by actions-cool by not using them
1 parent 05c20bb commit e7ce2f0

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/check_pr.yaml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,20 @@ jobs:
101101

102102
- name: Report progress
103103
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: |
104+
run: |
105+
gh issue view "$ISSUE" --json body | jq -r '.body' >body.txt
106+
cat >>body.txt <<-EOF
110107
${{ env.MARKER }}
111108
112-
Running ${{ steps.pr-number.outputs.action }} on #${{ steps.pr-number.outputs.pr }}...
109+
Running $ACTION on #$INPUT_PR...
110+
EOF
111+
gh issue edit "$ISSUE" --body-file body.txt
112+
rm body.txt
113+
env:
114+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
115+
INPUT_PR: ${{ inputs.pr }}
116+
ACTION: ${{ inputs.action }}
117+
ISSUE: ${{ github.event.issue.number }}
113118

114119
- name: Report failure
115120
if: ${{ failure() && (github.event_name == 'issues' || github.event_name == 'issue_comment') }}
@@ -442,4 +447,5 @@ jobs:
442447
gh issue edit "$ISSUE" --body-file body.new.txt
443448
rm body.txt body.new.txt
444449
env:
450+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
445451
ISSUE: ${{ github.event.issue.number }}

0 commit comments

Comments
 (0)