Skip to content

Commit

Permalink
Save PR number
Browse files Browse the repository at this point in the history
  • Loading branch information
amvanbaren committed Nov 16, 2023
1 parent f06a2b7 commit a12f603
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,12 @@ jobs:
docker push $SERVER_TAG:$IMAGE_VERSION
docker push $WEBUI_TAG:$IMAGE_VERSION
if: github.repository == 'eclipse/openvsx' && github.ref == 'refs/heads/master'
- name: Save PR number to file
if: github.event_name == 'pull_request'
run: echo ${{ github.event.number }} > PR_NUMBER.txt
- name: Archive PR number
if: github.event_name == 'pull_request'
uses: actions/upload-artifact@v3
with:
name: PR_NUMBER
path: PR_NUMBER.txt
8 changes: 7 additions & 1 deletion .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
if: github.event.workflow_run.event == 'pull_request'
uses: dawidd6/action-download-artifact@v2
with:
workflow: Build
workflow: CI
run_id: ${{ github.event.workflow_run.id }}
name: PR_NUMBER
- name: Read PR_NUMBER.txt
Expand Down Expand Up @@ -57,8 +57,14 @@ jobs:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Print current working directory #TODO remove after debugging
run: pwd
- name: List Files #TODO remove after debugging
run: ls -al
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
- name: Build Server
run: server/gradlew --no-daemon -p server build
- name: SonarCloud Scan on PR
Expand Down

0 comments on commit a12f603

Please sign in to comment.