Created
January 14, 2022 08:59
Revisions
-
abh006 created this gist
Jan 14, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ ... # Add this as a step to the job in which the branch name is needed - name: Set affected branch name id: vars run: echo ::set-output name=BRANCH_NAME::${GITHUB_REF#refs/*/} ... # Use this wherever the branch name is needed ${{ steps.vars.outputs.BRANCH_NAME }}