Skip to content

Commit

Permalink
ci: fix invalid way to retrieve branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
mkfsn committed May 19, 2021
1 parent 60ca4d2 commit e22d1e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/draft-new-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Extract version from branch name
if: startsWith(github.event.pull_request.head.ref, 'release/')
run: |
BRANCH_NAME="${{ echo ${GITHUB_REF#refs/heads/} }}"
BRANCH_NAME=${GITHUB_REF#refs/heads/}
VERSION=${BRANCH_NAME#release/}
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
Expand Down

0 comments on commit e22d1e5

Please sign in to comment.