Yiyiyimu commented on a change in pull request #3521:
URL: https://github.com/apache/apisix/pull/3521#discussion_r571620042
##########
File path: .github/workflows/build.yml
##########
@@ -53,6 +53,30 @@ jobs:
with:
submodules: recursive
+ - name: Extract branch name
+ id: branch_env
+ shell: bash
+ run: |
+ export VERSION=${GITHUB_REF##*/}
+ echo "##[set-output name=version;]$(echo ${VERSION:1})"
Review comment:
Like currently when we run on PR, the last word of `GITHUB_REF` would be
`merge`. When it runs when push, it would become the branch name. And when it
runs on release branch, branch like `v1.5` would become `1.5`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]