TSK-1497: disabled sonarqube on release and specified tag
This commit is contained in:
parent
0256b138b7
commit
b71eec1edf
|
@ -5,7 +5,7 @@ on:
|
||||||
branches-ignore:
|
branches-ignore:
|
||||||
- dependabot/**
|
- dependabot/**
|
||||||
tags:
|
tags:
|
||||||
- v*
|
- v[0-9]+\.[0-9]+\.[0-9]+
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
@ -422,7 +422,8 @@ jobs:
|
||||||
upload_to_sonar:
|
upload_to_sonar:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
name: Upload SonarQube analysis to sonarcloud
|
name: Upload SonarQube analysis to sonarcloud
|
||||||
if: github.head_ref == '' # no pull request
|
# no pull request and not on release
|
||||||
|
if: github.head_ref == '' && !startsWith(github.ref, 'refs/tags')
|
||||||
needs: [ test_frontend, test_backend, test_taskana-rest-spring-example-wildfly ]
|
needs: [ test_frontend, test_backend, test_taskana-rest-spring-example-wildfly ]
|
||||||
steps:
|
steps:
|
||||||
- name: Git checkout
|
- name: Git checkout
|
||||||
|
|
Loading…
Reference in New Issue