diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7cb8de830c..515be87c25 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,6 +31,10 @@ jobs: # need to fetch unshallow so that setuptools_scm can infer the version fetch-depth: 0 + # debug + - name: Git shorthash + run: git rev-parse --short HEAD + - name: Python uses: actions/setup-python@v5 with: @@ -60,6 +64,10 @@ jobs: # need to fetch unshallow so that setuptools_scm can infer the version fetch-depth: 0 + # debug + - name: Git shorthash + run: git rev-parse --short HEAD + - name: Python uses: actions/setup-python@v5 with: diff --git a/.github/workflows/release-pypi.yml b/.github/workflows/release-pypi.yml index d09aeb9adc..1511c61e51 100644 --- a/.github/workflows/release-pypi.yml +++ b/.github/workflows/release-pypi.yml @@ -20,6 +20,14 @@ jobs: steps: - uses: actions/checkout@v4 + with: + # fetch unshallow so commit hash matches github release. + # see https://github.com/vyperlang/vyper/blob/8f9a8cac49aafb3fbc9dde78f0f6125c390c32f0/.github/workflows/build.yml#L27-L32 + fetch-depth: 0 + + # debug + - name: Git shorthash + run: git rev-parse --short HEAD - name: Python uses: actions/setup-python@v5