Skip to content

Commit

Permalink
Fix version number generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Discookie committed Jun 13, 2023
1 parent 4003c96 commit 91e72b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
- name: Get the version
id: get_version
run: echo version=${GITHUB_REF#refs/tags/} >>$GITHUB_OUTPUT
outputs:
version: ${{ steps.get_version.outputs.version }}

test:
uses: ./.github/workflows/test.yml
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
- name: Get the version
id: get_version
run: echo version=0.0.0-$(echo ${GITHUB_SHA} | head -c 7) >>$GITHUB_OUTPUT
outputs:
version: ${{ steps.get_version.outputs.version }}

package:
needs: [version]
Expand Down

0 comments on commit 91e72b3

Please sign in to comment.