fix incorrect test branch checkout

This commit is contained in:
h1dden-da3m0n 2021-10-11 22:57:30 +02:00
parent 0f3bb63b3e
commit 80f57983f1
1 changed files with 5 additions and 2 deletions

View File

@ -4,13 +4,16 @@ on:
push:
branches:
- master
pull_request_target:
pull_request:
branches:
- master
env:
PR_TRIGGERED: ${{ github.event_name == 'pull_request' && github.repository == 'jellyfin/jellyfin-kodi' }}
permissions:
checks: write
jobs:
test:
runs-on: ubuntu-latest
@ -55,7 +58,7 @@ jobs:
- name: Run reviewdog for PR checks-api
if: ${{ env.PR_TRIGGERED == 'true' && matrix.py_version == '3.9' }}
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.JF_BOT_TOKEN }}
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cat flake8.output | reviewdog -reporter=github-pr-check -f=flake8 -name="flake8"