Skip to content

Commit

Permalink
Use env context
Browse files Browse the repository at this point in the history
  • Loading branch information
carlthome authored Oct 22, 2023
1 parent e20ca27 commit a2379b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@ jobs:
if: ${{ github.event_name == 'pull_request' }}
uses: carlthome/workflows/.github/workflows/python.yaml@main
with:
package-name: $PACKAGE_NAME
package-name: ${{ env.PACKAGE_NAME }}

pre-release:
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/heads/main') }}
uses: carlthome/workflows/.github/workflows/python.yaml@main
with:
package-name: $PACKAGE_NAME
package-name: ${{ env.PACKAGE_NAME }}
package-index-name: TestPyPI
package-index-url: https://test.pypi.org/legacy

release:
if: ${{ github.event_name == 'release' && github.event.action == 'published' }}
uses: carlthome/workflows/.github/workflows/python.yaml@main
with:
package-name: $PACKAGE_NAME
package-name: ${{ env.PACKAGE_NAME }}
package-index-name: PyPI
package-index-url: https://pypi.org

0 comments on commit a2379b9

Please sign in to comment.