Skip to content

Commit 99bb6bc

Browse files
committed
edk2-TemplateSpecification: Use github.ref_name
Use github.ref_name instead of potential multiple matches from branches that contain github.ref. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney <[email protected]>
1 parent c6bcde6 commit 99bb6bc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/gitbook-action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ jobs:
1414
uses: actions/checkout@v2
1515
- name: Get Branch
1616
run: |
17-
raw=$(git branch -r --contains ${{ github.ref }})
18-
branch=${raw/ origin\/}
17+
branch=${{ github.ref_name }}
1918
pubdir=${branch/master/draft}
2019
pubdir=${pubdir////-}
2120
echo "ON_PUSH_BRANCH_NAME=$branch" >> $GITHUB_ENV

0 commit comments

Comments
 (0)