mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
[CI skip] Updated workflows
This commit is contained in:
parent
101139bb2f
commit
1806b3399f
2
.github/workflows/pr-labels.yml
vendored
2
.github/workflows/pr-labels.yml
vendored
@ -13,7 +13,7 @@ jobs:
|
||||
if: github.repository == 'Slimefun/Slimefun4'
|
||||
|
||||
steps:
|
||||
- uses: WalshyDev/pr-labels@v1.1
|
||||
- uses: baked-libs/pull-request-labels@v1.1
|
||||
id: labeller
|
||||
name: Apply labels based on branch
|
||||
with:
|
||||
|
9
.github/workflows/sonarcloud.yml
vendored
9
.github/workflows/sonarcloud.yml
vendored
@ -9,6 +9,12 @@ jobs:
|
||||
|
||||
name: SonarCloud Scanner
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
|
||||
## Only run the sonarcloud scanner if a token is present
|
||||
if: ${{ env.SONAR_TOKEN != 0 }}
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@ -38,6 +44,3 @@ jobs:
|
||||
|
||||
- name: SonarCloud analysis
|
||||
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
|
Loading…
Reference in New Issue
Block a user