Skip to content

Commit

Permalink
properly reference gha job output
Browse files Browse the repository at this point in the history
  • Loading branch information
mmorgantaylor committed Nov 1, 2024
1 parent 5fa6944 commit 1f1f67c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release-python-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
build-n-publish:
name: Build and publish Python client to PyPI
needs: [ params-gen ]
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing (OIDC)
Expand All @@ -53,12 +54,12 @@ jobs:

- name: Generate Python client
run: |
echo "Generating Python client for version ${{ steps.generate-params.outputs.new-tag }}"
echo "Generating Python client for version ${{ needs.params-gen.outputs.new-tag }}"
openapi-generator-cli generate \
-i common/openapi.yml \
-g python \
-o teaspoons-client \
--additional-properties=projectName=terra-scientific-pipelines-service-api-client,packageName=teaspoons_client,packageVersion=${{ steps.generate-params.outputs.new-tag }},httpUserAgent=terra-scientific-pipelines-service-api-client/${{ steps.generate-params.outputs.new-tag }}/python
--additional-properties=projectName=terra-scientific-pipelines-service-api-client,packageName=teaspoons_client,packageVersion=${{ needs.params-gen.outputs.new-tag }},httpUserAgent=terra-scientific-pipelines-service-api-client/${{ needs.params-gen.outputs.new-tag }}/python
- name: Install pypa/build
working-directory: ./teaspoons-client
Expand All @@ -74,5 +75,5 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages_dir: ./teaspoons-client/dist
skip_existing: ${{ steps.generate-params.outputs.skip-existing-pypi-version }}
skip_existing: ${{ needs.params-gen.outputs.skip-existing-pypi-version }}
attestations: false # https://github.com/pypa/gh-action-pypi-publish/discussions/255

0 comments on commit 1f1f67c

Please sign in to comment.