From 5bc87eb9d9af7b6910cc117392910451016eec4b Mon Sep 17 00:00:00 2001 From: Maximilian Linhoff Date: Tue, 9 Jul 2024 11:02:09 +0200 Subject: [PATCH] Add info step --- .github/workflows/sonar.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index 3ab5ba379b1..d3fbe87052f 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -7,16 +7,27 @@ # Adapted from https://github.com/medplum/medplum/ name: Sonar + on: workflow_run: workflows: [CI] types: [completed] + jobs: sonar: name: Sonar runs-on: ubuntu-latest if: github.event.workflow_run.conclusion == 'success' steps: + - name: Info + run: | + echo "Running Sonarqube action for PR ${PR_NUMBER} of ${REPOSITORY}:${PR_BRANCH} to ${PR_TARGET}" + env: + REPOSITORY: ${{ github.event.workflow_run.head_repository.full_name }} + PR_NUMBER: ${{ github.event.workflow_run.pull_requests[0].number }} + PR_BRANCH: ${{ github.event.workflow_run.pull_requests[0].head.ref }} + PR_TARGET: ${{ github.event.workflow_run.pull_requests[0].base.ref }} + - uses: actions/checkout@v4 with: repository: ${{ github.event.workflow_run.head_repository.full_name }}