Update uncivbot.yml

This commit is contained in:
Yair Morgenstern 2021-01-23 23:48:26 +02:00 committed by GitHub
parent e812e8e908
commit 241af27c71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ on:
jobs: jobs:
summary: summary:
if: github.event.comment.body == 'summary' if: github.event_name == "issue_comment" && github.event.comment.body == 'summary'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/github-script@v3 - uses: actions/github-script@v3
@ -60,7 +60,7 @@ jobs:
steps: steps:
- uses: actions/github-script@v3 - uses: actions/github-script@v3
with: with:
github-token: ${{secrets.ACTIONS_ACCESS_TOKEN}} github-token: ${{secrets.GITHUB_TOKEN}}
script: | script: |
async function branchExists(branchName) { async function branchExists(branchName) {
try { try {