We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dee74a commit 1ef9f18Copy full SHA for 1ef9f18
.github/workflows/stage-release.yml
@@ -11,7 +11,6 @@ on:
11
12
env:
13
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14
- BRANCH_NAME: ${{ github.event.pull_request.head.ref }}
15
16
jobs:
17
github-release:
@@ -32,7 +31,8 @@ jobs:
32
31
- name: Extract version from branch name
33
if: github.event.pull_request.merged == true
34
run: |
35
- VERSION=$(echo $BRANCH_NAME | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')
+ TEMP_BRANCH_NAME=${{ github.event.pull_request.head.ref }}
+ VERSION=$(echo $TEMP_BRANCH_NAME | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')
36
echo "VERSION=$VERSION" >> $GITHUB_ENV
37
- name: Extract version from workflow input
38
if: github.event_name == 'workflow_dispatch'
0 commit comments