From a2379b9d8b3edd931dbe42569bcd1d544a699ed6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20Thom=C3=A9?= Date: Mon, 23 Oct 2023 00:50:55 +0200 Subject: [PATCH 1/2] Use env context --- .github/workflows/ci.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 242fe12..887c3c4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,13 +27,13 @@ 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 @@ -41,6 +41,6 @@ jobs: 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 From f2c2e1d74953cd6e951e3757ff1578213eb2adb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20Thom=C3=A9?= Date: Mon, 23 Oct 2023 00:57:22 +0200 Subject: [PATCH 2/2] Inline value --- .github/workflows/ci.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 887c3c4..98c34f8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,9 +12,6 @@ on: branches: - main -env: - PACKAGE_NAME: audioscrape - concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -27,13 +24,13 @@ jobs: if: ${{ github.event_name == 'pull_request' }} uses: carlthome/workflows/.github/workflows/python.yaml@main with: - package-name: ${{ env.PACKAGE_NAME }} + package-name: audioscrape 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: audioscrape package-index-name: TestPyPI package-index-url: https://test.pypi.org/legacy @@ -41,6 +38,6 @@ 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: audioscrape package-index-name: PyPI package-index-url: https://pypi.org