From 313ee81fdbc52d1e093bbd2a2e99dcf0d32f2b2c Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Wed, 3 Jan 2024 01:58:31 +0000 Subject: [PATCH 1/2] update job to publish legacy package if current is released --- .github/workflows/ci.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b25f6ad..28f154b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,7 +70,7 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_legacy: - needs: test + needs: publish if: ${{ !startsWith(github.event.head_commit.message, 'bump') && !startsWith(github.event.head_commit.message, 'chore') && github.ref == 'refs/heads/main' && contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) && github.repository_owner == 'supabase-community' }} runs-on: ubuntu-latest name: "supafunc: Bump version and publish" @@ -87,14 +87,9 @@ jobs: ref: ${{ github.ref }} fetch-depth: 0 token: ${{ secrets.SILENTWORKS_PAT }} - - name: Python Semantic Release - id: release - uses: python-semantic-release/python-semantic-release@v8.0.0 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 # NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true. # See https://github.com/actions/runner/issues/1173 - if: steps.release.outputs.released == 'true' + if: jobs.publish.steps.release.outputs.released == 'true' From 38cee36a5133aac9531cf76fd27480426560dc4b Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Wed, 3 Jan 2024 02:05:00 +0000 Subject: [PATCH 2/2] update to fix error in workflow file --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 28f154b..9ad5082 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -92,4 +92,4 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 # NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true. # See https://github.com/actions/runner/issues/1173 - if: jobs.publish.steps.release.outputs.released == 'true' + if: needs.publish.release.outputs.released == 'true'