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 }}