mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-11 02:26:49 +00:00
[issue-1990] - Add github token (#1991)
This commit is contained in:
parent
8a390d4dbb
commit
4bc41e2021
5
.github/workflows/maven-build.yml
vendored
5
.github/workflows/maven-build.yml
vendored
@ -50,8 +50,11 @@ jobs:
|
||||
java-version: 11
|
||||
|
||||
- name: Build PR with Maven
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
run: |
|
||||
git fetch --no-tags https://github.com/open-metadata/OpenMetadata.git +refs/heads/main:refs/remotes/origin/main
|
||||
mvn -Dsonar.login=${{ secrets.SONAR_TOKEN }} \
|
||||
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }} \
|
||||
-Dsonar.pullrequest.branch=${{ github.head_ref }} \
|
||||
@ -59,5 +62,7 @@ jobs:
|
||||
-Dsonar.pullrequest.provider=github clean install
|
||||
|
||||
- name: Build with Maven
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
if: ${{ github.event_name == 'push' }}
|
||||
run: mvn -Dsonar.login=${{ secrets.SONAR_TOKEN }} clean install
|
||||
|
Loading…
x
Reference in New Issue
Block a user