Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Correct branch name extraction in CI workflow #4031

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DeVikingMark
Copy link

This PR fixes the branch name extraction in the CI workflow by:

  • Replacing incorrect bash syntax $(${${{ github.ref }}:11}) with proper GitHub Actions syntax
  • Using standard GitHub environment variable GITHUB_REF with proper parameter expansion
  • Implementing more reliable branch name extraction using refs/*/ pattern

This change ensures proper branch name extraction for all GitHub event triggers.

@github-actions github-actions bot added the external Issues created by non node team members label Jan 6, 2025
@@ -37,7 +37,7 @@ jobs:
- name: Trim branch name
id: trim_ref
run: |
echo "branch=$(${${{ github.ref }}:11})" >> $GITHUB_OUTPUT
echo "branch=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBH looks like this variable isn't used at all. Same for debug below.

Am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external Issues created by non node team members
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants