diff --git a/.github/workflows/nitro-alpha.yml b/.github/workflows/nitro-alpha.yml index b87202d72c..b26485d8e6 100644 --- a/.github/workflows/nitro-alpha.yml +++ b/.github/workflows/nitro-alpha.yml @@ -20,8 +20,8 @@ jobs: - name: Generate branch name id: branch_name run: | - echo "Original branch: ${GITHUB_REF#refs/heads/}" - NEW_BRANCH="${GITHUB_REF#refs/heads/}_alpha" + echo "Original branch: ${GITHUB_REF}" + NEW_BRANCH="${GITHUB_REF}_alpha" echo "::set-output name=branch::${NEW_BRANCH}" - name: Create new branch in Nitro @@ -40,7 +40,7 @@ jobs: await github.rest.git.createRef({ owner, repo, - ref: `refs/heads/${branch}`, + ref: `${branch}`, sha: mainSha });