Skip to content

Commit

Permalink
[CI] Specify the branch name when pushing node badge commits
Browse files Browse the repository at this point in the history
Fixes #115
  • Loading branch information
Douile committed Oct 4, 2023
1 parent 9db873e commit 893b8b9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/node-badge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -68,3 +73,4 @@ jobs:
if: ${{ success() }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ steps.extract_branch.outputs.branch }}

0 comments on commit 893b8b9

Please sign in to comment.