From b4c61781fb8cc891e5cd13b66b50099e8c64d80f Mon Sep 17 00:00:00 2001 From: Tom <25043847+Douile@users.noreply.github.com> Date: Thu, 5 Oct 2023 08:46:35 +0000 Subject: [PATCH] Specify the branch name when pushing node badge commits (#116) * [CI] Specify the branch name when pushing node badge commits Fixes #115 * testing: remove games to update badge * Add/Update badge * Revert "testing: remove games to update badge" This reverts commit 8256176839e996810568f5104a7c6a19ab482ab0. * Add/Update badge --------- Co-authored-by: GitHub Action --- .github/workflows/node-badge.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/node-badge.yml b/.github/workflows/node-badge.yml index 7379e96..b6865ee 100644 --- a/.github/workflows/node-badge.yml +++ b/.github/workflows/node-badge.yml @@ -17,6 +17,11 @@ jobs: env: BADGE_PATH: ".github/badges/node.svg" steps: + - name: Extract branch name + shell: bash + run: echo "branch=${GITHUB_REF#refs/heads/}" >> "${GITHUB_OUTPUT}" + id: extract_branch + - uses: actions/checkout@v4 - uses: actions/checkout@v4 with: @@ -68,3 +73,4 @@ jobs: if: ${{ success() }} with: github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ steps.extract_branch.outputs.branch }}