Skip to content

Commit

Permalink
Merge pull request #2671 from cta-observatory/fix_sonar
Browse files Browse the repository at this point in the history
Fix sonar for pull requests
  • Loading branch information
maxnoe authored Dec 17, 2024
2 parents 7858ddc + 1385b8e commit d0ab1d1
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,26 @@ jobs:
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'
steps:
- uses: actions/checkout@v4
- name: Checkout branch or tag
uses: actions/checkout@v4
if: github.event.workflow_run.event != 'pull_request'
with:
repository: ${{ github.event.workflow_run.head_repository.full_name }}
ref: ${{ github.event.workflow_run.head_branch }}
fetch-depth: 0

- name: Checkout Pull Request merge result
uses: actions/checkout@v4
if: github.event.workflow_run.event == 'pull_request'
with:
ref: refs/pull/${{ github.event.workflow_run.pull_requests[0].number }}/merge
fetch-depth: 0

- name: Git info
run: |
git status
git log -n 5 --oneline
- name: 'Download code coverage'
uses: actions/github-script@v7
with:
Expand Down

0 comments on commit d0ab1d1

Please sign in to comment.