fix incorrect test branch checkout

This commit is contained in:
h1dden-da3m0n 2021-10-11 22:57:30 +02:00
parent 0f3bb63b3e
commit 80f57983f1

View file

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