mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
chore: Don't run sonar scan on pull requests.
This reverts commit e3d20afc6a
.
It doesn't work.
This commit is contained in:
parent
791fd01349
commit
2b783c4170
9
.github/workflows/sonar-scan.yml
vendored
9
.github/workflows/sonar-scan.yml
vendored
|
@ -3,7 +3,7 @@ name: sonar-scan
|
|||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request_target:
|
||||
pull_request:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
|
@ -37,10 +37,13 @@ jobs:
|
|||
unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
|
||||
echo "$HOME/.sonar/build-wrapper-linux-x86" >> $GITHUB_PATH
|
||||
- name: Install dependencies and prepare build
|
||||
run: .github/scripts/sonar-prepare
|
||||
run: |
|
||||
.github/scripts/sonar-prepare
|
||||
- name: Run build-wrapper
|
||||
run: 'build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} .github/scripts/sonar-build'
|
||||
run: |
|
||||
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} .github/scripts/sonar-build
|
||||
- name: Run sonar-scanner
|
||||
if: github.event_name == 'push'
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user