Skip to content

Commit

Permalink
Use vars.PACKAGE_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
carlthome committed Dec 12, 2023
1 parent 61ea8c6 commit e294820
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,18 @@ concurrency:
permissions:
id-token: write

env:
PACKAGE_NAME: audioscrape

jobs:
test:
if: ${{ github.event_name == 'pull_request' }}
uses: carlthome/workflows/.github/workflows/python.yaml@main
with:
package-name: ${{ env.PACKAGE_NAME }}
package-name: ${{ vars.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: ${{ env.PACKAGE_NAME }}
package-name: ${{ vars.PACKAGE_NAME }}
package-index-name: TestPyPI
package-index-url: https://test.pypi.org
package-index-upload-url: https://test.pypi.org/legacy/
Expand All @@ -44,7 +41,7 @@ jobs:
if: ${{ github.event_name == 'release' && github.event.action == 'published' }}
uses: carlthome/workflows/.github/workflows/python.yaml@main
with:
package-name: ${{ env.PACKAGE_NAME }}
package-name: ${{ vars.PACKAGE_NAME }}
package-index-name: PyPI
package-index-url: https://pypi.org
package-index-upload-url: https://upload.pypi.org/legacy/
Expand Down

0 comments on commit e294820

Please sign in to comment.