Skip to content

Commit

Permalink
Correct version processing (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnHDF authored May 31, 2024
1 parent 19802ea commit 3b9ac71
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/tarball.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,15 @@ jobs:
with:
path: hdfsrc

- name: Read VERSION file
id: getversion
run: echo "version=$(cat VERSION)" >> $GITHUB_OUTPUT

- name: Retrieve version
id: version
run: |
cd "$GITHUB_WORKSPACE/hdfsrc"
VERSION_BASE=$(echo VERSION | sed -r "s/.*-([0-9]+\.[0-9]+\.[0-9]+).*/\1/")
VERSION_BASE=$(echo "${{ steps.getversion.outputs.version }}" | sed -r "s/.*-([0-9]+\.[0-9]+\.[0-9]+).*/\1/")
echo "TAG_VERSION=$VERSION_BASE" >> $GITHUB_OUTPUT
- name: Set file base name
Expand Down

0 comments on commit 3b9ac71

Please sign in to comment.