Skip to content

Commit 043dbd7

Browse files
authored
Merge pull request #832 from eclipse/sonar
Save PR number
2 parents f06a2b7 + a12f603 commit 043dbd7

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,12 @@ jobs:
4747
docker push $SERVER_TAG:$IMAGE_VERSION
4848
docker push $WEBUI_TAG:$IMAGE_VERSION
4949
if: github.repository == 'eclipse/openvsx' && github.ref == 'refs/heads/master'
50+
- name: Save PR number to file
51+
if: github.event_name == 'pull_request'
52+
run: echo ${{ github.event.number }} > PR_NUMBER.txt
53+
- name: Archive PR number
54+
if: github.event_name == 'pull_request'
55+
uses: actions/upload-artifact@v3
56+
with:
57+
name: PR_NUMBER
58+
path: PR_NUMBER.txt

.github/workflows/sonar.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
if: github.event.workflow_run.event == 'pull_request'
1414
uses: dawidd6/action-download-artifact@v2
1515
with:
16-
workflow: Build
16+
workflow: CI
1717
run_id: ${{ github.event.workflow_run.id }}
1818
name: PR_NUMBER
1919
- name: Read PR_NUMBER.txt
@@ -57,8 +57,14 @@ jobs:
5757
path: ~/.gradle/caches
5858
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
5959
restore-keys: ${{ runner.os }}-gradle
60+
- name: Print current working directory #TODO remove after debugging
61+
run: pwd
6062
- name: List Files #TODO remove after debugging
6163
run: ls -al
64+
- name: Set up JDK
65+
uses: actions/setup-java@v1
66+
with:
67+
java-version: 17
6268
- name: Build Server
6369
run: server/gradlew --no-daemon -p server build
6470
- name: SonarCloud Scan on PR

0 commit comments

Comments
 (0)