File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -172,3 +172,19 @@ jobs:
172172 token : ${{ secrets.CODECOV_TOKEN }}
173173 files : tests/target/site/jacoco-aggregate/jacoco.xml
174174 fail_ci_if_error : false
175+ - name : 🔗 Codecov Report Link
176+ if : always() && matrix.os == 'ubuntu-latest' && matrix.java-version == '21'
177+ run : |
178+ # Use the PR head SHA if available, otherwise fallback to the push commit SHA
179+ COMMIT_SHA="${{ github.event.pull_request.head.sha || github.sha }}"
180+ REPO="${{ github.repository }}"
181+
182+ # Construct both URLs
183+ COMMIT_URL="https://app.codecov.io/github/$REPO/commit/$COMMIT_SHA"
184+ PROJECT_URL="https://app.codecov.io/github/$REPO"
185+
186+ echo "" >> $GITHUB_STEP_SUMMARY
187+ echo "### ☂️ Codecov Report" >> $GITHUB_STEP_SUMMARY
188+ echo "Your upload is queued for processing. When finished, results will be available at:" >> $GITHUB_STEP_SUMMARY
189+ echo "- 👉 **[View Report for this Commit]($COMMIT_URL)**" >> $GITHUB_STEP_SUMMARY
190+ echo "- 🏠 **[View Overall Project Dashboard]($PROJECT_URL)**" >> $GITHUB_STEP_SUMMARY
You can’t perform that action at this time.
0 commit comments