Merge pull request #1136 from apache/feature/WW-5405-main

WW-5405 Prepares to rename master branch into main
This commit is contained in:
Lukasz Lenart
2024-12-10 17:41:40 +01:00
committed by GitHub
6 changed files with 33 additions and 33 deletions
+2 -2
View File
@@ -18,8 +18,8 @@ name: "CodeQL"
on:
push:
branches:
- master
- release/struts-7-0-x
- 'main'
- 'release/*'
pull_request:
permissions:
+2 -2
View File
@@ -19,8 +19,8 @@ on:
pull_request:
push:
branches:
- master
- release/struts-7-0-x
- 'main'
- 'release/*'
permissions: read-all
+1 -1
View File
@@ -21,7 +21,7 @@ on:
- cron: "30 1 * * 6" # Weekly on Saturdays
push:
branches:
- master
- "main"
permissions: read-all
+4 -4
View File
@@ -19,8 +19,7 @@ on:
pull_request:
push:
branches:
- master
- release/struts-7-0-x
- 'main'
permissions: read-all
@@ -45,5 +44,6 @@ jobs:
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
if: ${{ github.ref == 'master' || github.base_ref == 'master' }}
run: ./mvnw -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.branch.name=master -Pcoverage -DskipAssembly
MAIN_BRANCH: ${{ github.ref || github.base_ref || github.ref || github.base_ref }}
if: ${{ github.ref == 'main' || github.base_ref == 'main' }}
run: ./mvnw -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.branch.name=${{ envs.MAIN_BRANCH }} -Pcoverage -DskipAssembly