Skip to content

Commit b130491

Browse files
committed
Just remove the commit SHA altogether
1 parent 6d9299a commit b130491

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/cd.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
# https://github.com/pypa/gh-action-pypi-publish/issues/217#issuecomment-1965727093
1313
runs-on: ubuntu-latest
1414
outputs:
15-
version: ${{ steps.set-version.outputs.version }}
15+
version: ${{ steps.get-version.outputs.version }}
1616
steps:
1717
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
1818
with:
@@ -28,15 +28,17 @@ jobs:
2828
VERSION_BASE="$(uv version --short)"
2929
RUN_NUMBER="${{ github.run_number }}"
3030
uv version --frozen "${VERSION_BASE}.dev${RUN_NUMBER}"
31-
echo "version=$(uv version --short)" >> "$GITHUB_OUTPUT"
31+
- name: Get current version
32+
id: get-version
33+
run: echo "version=$(uv version --short)" >> "$GITHUB_OUTPUT"
3234
- name: Build packages for distribution
3335
run: uv build
3436
- name: Run AppInspect
3537
uses: ./.github/actions/run-appinspect
3638
- name: Upload distributables
3739
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
3840
with:
39-
name: splunk-sdk-${{ steps.set-version.outputs.version }}-g${{ github.sha }}
41+
name: splunk-sdk-${{ steps.set-version.outputs.version }}
4042
path: dist/
4143
- name: Generate API reference
4244
run: make -C ./docs html
@@ -59,7 +61,8 @@ jobs:
5961
- name: Download distributables
6062
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
6163
with:
62-
name: splunk-sdk-${{ needs.build-distributables.outputs.version }}-${{ github.sha}}
64+
name: splunk-sdk-${{ needs.build-distributables.outputs.version }}
65+
path: dist/
6366
- name: Publish packages to Test PyPI
6467
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b
6568
with:
@@ -78,7 +81,7 @@ jobs:
7881
- name: Download distributables
7982
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
8083
with:
81-
name: splunk-sdk-${{ needs.build-distributables.outputs.version }}-${{ github.sha}}
84+
name: splunk-sdk-${{ needs.build-distributables.outputs.version }}
8285
path: dist/
8386
- name: Publish packages to PyPI
8487
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b

0 commit comments

Comments
 (0)