Skip to content

Commit 9c80cb4

Browse files
committed
check if github app key exists
1 parent c1c8ce2 commit 9c80cb4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/compare.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,20 @@ jobs:
9494
cat diff-$outarch/config.diff >> diff.output &&
9595
echo '```' >> diff.output);
9696
done
97+
- run: >-
98+
cat diff.output
9799
- uses: tibdex/github-app-token@v2.1.0
100+
if: env.KEY
101+
env:
102+
KEY: ${{ secrets.GH_APP_PRIVKEY }}
98103
id: gettoken
99104
with:
100105
app_id: 337143
101106
private_key: ${{ secrets.GH_APP_PRIVKEY }}
102107
- uses: peter-evans/create-or-update-comment@v4
108+
if: env.KEY
109+
env:
110+
KEY: ${{ secrets.GH_APP_PRIVKEY }}
103111
with:
104112
token: ${{ steps.gettoken.outputs.token }}
105113
comment-id: ${{ steps.fc.outputs.comment-id }}

0 commit comments

Comments
 (0)