chore: update tests.yml action

This commit is contained in:
2021-11-24 18:27:40 +00:00
parent 6ef28d24d8
commit b9d86a9635

View File

@@ -62,7 +62,7 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# Repo owner has commented /ok-to-test on a (fork-based) pull request # Repo owner has commented /ok-to-test on a (fork-based) pull request
integration-fork: tests-not-trusted:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event_name == 'repository_dispatch' && if: github.event_name == 'repository_dispatch' &&
github.event.client_payload.slash_command.sha != '' && github.event.client_payload.slash_command.sha != '' &&
@@ -74,6 +74,7 @@ jobs:
with: with:
# disable shallow clones for better sonarcloud accuracy # disable shallow clones for better sonarcloud accuracy
fetch-depth: 0 fetch-depth: 0
ref: 'refs/pull/${{ github.event.client_payload.pull_request.number }}/merge'
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with: