Skip to content

Commit

Permalink
extract version in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mms-gianni committed Mar 2, 2021
1 parent 4d09a24 commit 634edf0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ jobs:

- name: Bump version
id: bump_version
run: sed -i 's/DEV-VERSION/${{ github.ref }}/g' input.txt
run: |
export VERSION=$(echo ${{ github.ref }} | awk -F'/' '{print $3}')
sed -i 's/DEV-VERSION/$VERSION/g' input.txt
- name: Build
id: build_release
Expand Down

0 comments on commit 634edf0

Please sign in to comment.