We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db40292 commit d43253fCopy full SHA for d43253f
.github/workflows/packages.yml
@@ -16,10 +16,6 @@ on:
16
permissions:
17
contents: read
18
19
-# Override the version if there is no tag release.
20
-env:
21
- ELASTIC_CI_POST_VERSION: ${{ startsWith(github.ref, 'refs/tags') && '' || github.run_id }}
22
-
23
jobs:
24
build:
25
runs-on: ubuntu-latest
@@ -28,6 +24,11 @@ jobs:
28
- uses: actions/setup-python@v5
29
with:
30
26
python-version: "3.10"
27
+ - name: Override the version if there is no tag release.
+ run: |
+ if [[ "${GITHUB_REF}" != refs/tags/* ]]; then
+ echo "ELASTIC_CI_POST_VERSION=${{ github.run_id }}" >> "${GITHUB_ENV}"
31
+ fi
32
- name: Install wheel
33
run: pip install --user wheel
34
- name: Building universal wheel
@@ -41,4 +42,3 @@ jobs:
41
42
path: |
43
dist/*.whl
44
dist/*tar.gz
0 commit comments