Skip to content

Commit

Permalink
user id test
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementGib committed Nov 6, 2024
1 parent 3e84832 commit 3ab43f7
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: 'Quarkus CI with Maven'

on:
Expand Down Expand Up @@ -43,6 +35,23 @@ jobs:
- name: Log coverage percentage
run: |
echo "GitHub User ID: ${GITHUB_ACTOR}"
echo "coverage = ${{ steps.jacoco.outputs.coverage }}"
echo "branch coverage = ${{ steps.jacoco.outputs.branches }}"
echo "branch coverage = ${{ steps.jacoco.outputs.branches }}"
- name: Commit and push
if: ${{ github.event_name != 'pull_request' }}
run: |
cd .github/badges
if [[ `git status --porcelain *.svg` ]]; then
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
git add *.svg
git commit -m "Autogenerated JaCoCo coverage badge" *.svg
git push
fi
- name: Upload Jacoco coverage report
uses: actions/upload-artifact@v4
with:
name: jacoco-report
path: target/site/jacoco/

0 comments on commit 3ab43f7

Please sign in to comment.