File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525
2626 - name : Set version (PR)
2727 if : ${{ github.event_name == 'pull_request' }}
28+ env :
29+ PR_HEAD_REF : " ${{ github.event.pull_request.head.ref }}"
2830 run : |
29- echo REF_NAME="${{ github.event.pull_request.head.ref }} " >> $GITHUB_ENV
31+ echo REF_NAME="$PR_HEAD_REF " >> $GITHUB_ENV
3032 echo SHA="${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
3133
3234 - name : Set env variables (Branch/Tag)
Original file line number Diff line number Diff line change 4242
4343 - name : Version output
4444 id : version-output
45+ env :
46+ BRANCH : " ${{ github.head_ref || github.ref_name }}"
4547 run : |
4648 if [ -z ${{ inputs.version }} ]; then
47- BRANCH=${{ github.head_ref || github.ref_name }}
4849 VERSION=0.2.0-${BRANCH/\//-}.${{ github.run_number }}
4950 echo "version=$VERSION" >> $GITHUB_OUTPUT
5051 else
You can’t perform that action at this time.
0 commit comments