Skip to content

Commit

Permalink
Better names, add git info
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed Dec 13, 2024
1 parent bb25945 commit fdde41c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,27 @@ jobs:
run: |
echo "$GITHUB_CONTEXT"
- 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

- uses: actions/checkout@v4
- 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 describe
git status
git log -n 5 --oneline
- name: 'Download code coverage'
uses: actions/github-script@v7
with:
Expand Down

0 comments on commit fdde41c

Please sign in to comment.