From 84e9496f3a59f0dc56286172528dd739cbd2e686 Mon Sep 17 00:00:00 2001 From: Yukari Chiba Date: Mon, 13 Oct 2025 17:55:30 +0800 Subject: [PATCH] check if github app key exists --- .github/workflows/compare.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/compare.yml b/.github/workflows/compare.yml index fc18293..e0b6046 100644 --- a/.github/workflows/compare.yml +++ b/.github/workflows/compare.yml @@ -94,12 +94,20 @@ jobs: cat diff-$outarch/config.diff >> diff.output && echo '```' >> diff.output); done + - run: >- + cat diff.output - uses: tibdex/github-app-token@v2.1.0 + if: env.KEY + env: + KEY: ${{ secrets.GH_APP_PRIVKEY }} id: gettoken with: app_id: 337143 private_key: ${{ secrets.GH_APP_PRIVKEY }} - uses: peter-evans/create-or-update-comment@v4 + if: env.KEY + env: + KEY: ${{ secrets.GH_APP_PRIVKEY }} with: token: ${{ steps.gettoken.outputs.token }} comment-id: ${{ steps.fc.outputs.comment-id }}