From 241af27c71c0128894fa9ba37845fd42fbbf0069 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Sat, 23 Jan 2021 23:48:26 +0200 Subject: [PATCH] Update uncivbot.yml --- .github/workflows/uncivbot.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/uncivbot.yml b/.github/workflows/uncivbot.yml index 173c362a9e..7ea07d70d9 100644 --- a/.github/workflows/uncivbot.yml +++ b/.github/workflows/uncivbot.yml @@ -6,7 +6,7 @@ on: jobs: summary: - if: github.event.comment.body == 'summary' + if: github.event_name == "issue_comment" && github.event.comment.body == 'summary' runs-on: ubuntu-latest steps: - uses: actions/github-script@v3 @@ -60,7 +60,7 @@ jobs: steps: - uses: actions/github-script@v3 with: - github-token: ${{secrets.ACTIONS_ACCESS_TOKEN}} + github-token: ${{secrets.GITHUB_TOKEN}} script: | async function branchExists(branchName) { try {