From c232310b61e5cf8a190535d5db6528e849dbd656 Mon Sep 17 00:00:00 2001 From: jeandut Date: Wed, 23 Oct 2024 14:55:56 +0200 Subject: [PATCH] Update pr_validation.yml --- .github/workflows/pr_validation.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr_validation.yml b/.github/workflows/pr_validation.yml index dd554be..8f64310 100644 --- a/.github/workflows/pr_validation.yml +++ b/.github/workflows/pr_validation.yml @@ -84,7 +84,12 @@ jobs: echo "https://img.shields.io/badge/coverage-${total_cov}%25-${COLOR}" curl "https://img.shields.io/badge/coverage-${total_cov}%25-${COLOR}" > badges/cov_badge.svg echo "" >> badges/cov_badge.svg - + - name: Checkout to current branch to be able to commit + if: github.event_name == 'pull_request' + uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.ref }} + token: ${{ secrets.GITHUB_TOKEN }} - name: Commit coverage badge if: github.event_name == 'pull_request' uses: EndBug/add-and-commit@v9