fix: disable post-result if GH_TOKEN secret is not set
This commit is contained in:
parent
ed5b7fd5f7
commit
e05c72016e
1 changed files with 4 additions and 1 deletions
5
.github/workflows/review.yml
vendored
5
.github/workflows/review.yml
vendored
|
|
@ -141,6 +141,9 @@ jobs:
|
|||
- name: fetch report
|
||||
run: echo ${{ needs.report.outputs.report }} | base64 -d > report.md
|
||||
- name: post comment
|
||||
run: gh pr -R NixOS/nixpkgs comment ${{ inputs.pr }} -F report.md
|
||||
run: |
|
||||
if [[ -n "$GH_TOKEN" ]]; then
|
||||
gh pr -R NixOS/nixpkgs comment ${{ inputs.pr }} -F report.md
|
||||
fi
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue