Initial commit #98
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PushAction | |
on: | |
push: | |
branches: [ main, master ] | |
paths-ignore: | |
- .github/workflows/pullrequest.yml | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: [ self-hosted ] | |
steps: | |
- name: Cancel previous runs | |
uses: n1hility/cancel-previous-runs@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Fetch git repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: SonarQube Scan | |
uses: philips-software/sonar-scanner-action@main | |
with: | |
url: ${{ secrets.SONARQUBE_HOST }} | |
token: ${{ secrets.SONARQUBE_TOKEN }} | |
projectKey: github-action-scripts | |
projectName: GitHub Action Scripts | |
- name: Cleanup scan | |
run: sudo rm -rf "$GITHUB_WORKSPACE/.scannerwork" |