Skip to content

Commit

Permalink
build: append short sha to CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
leocov-dev committed Jul 12, 2024
1 parent 431736f commit da536de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
ref:
type: string
default: ""
is-dev:
type: boolean
default: false

jobs:

Expand All @@ -21,6 +24,10 @@ jobs:
with:
ref: ${{ inputs.ref }}

- name: Set dev version
if: ${{ inputs.is-dev == true }}
run: hatch version "$(hatch version)+${GITHUB_SHA::7}"

- name: Build SDist
id: sdist
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ jobs:
# -------------
build:
uses: ./.github/workflows/_build.yml
with:
is-dev: true

0 comments on commit da536de

Please sign in to comment.