Skip to content

Commit

Permalink
fix(release): Env var must be in same command as echo
Browse files Browse the repository at this point in the history
  • Loading branch information
jbuck committed Jun 7, 2023
1 parent 3a0bcfc commit b94a60d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ jobs:

- name: Compute new version number
run: |
versionNumber=$(git tag -l --sort=version:refname | grep -v '-' | tail -1 | awk '{print $2 + 1}' FS='.')
echo "versionNumber=$versionNumber" >> "$GITHUB_ENV"
echo versionNumber=$(git tag -l --sort=version:refname | grep -v '-' | tail -1 | awk '{print $2 + 1}' FS='.') >> "$GITHUB_ENV"
- name: Create release branch
run: git checkout -b train-${{ env.versionNumber }}
Expand Down

0 comments on commit b94a60d

Please sign in to comment.