From 2227ca57248d95338c9dcec5fbcec9e0c3b339c4 Mon Sep 17 00:00:00 2001 From: Jeel Dobariya Date: Sat, 11 Nov 2023 14:51:06 +0530 Subject: [PATCH] Update publish.yaml --- .github/workflows/publish.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 0ddb7dd..0235cd6 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -11,10 +11,12 @@ jobs: steps: - name: Check release type run: | - if [ "${{ github.event_name }}" == "release" ]; then + if [ "${{ github.event.action }}" == "published" ]; then echo "This is a stable release." - elif [ "${{ github.event_name }}" == "prerelease" ]; then + elif [ "${{ github.event.action }}" == "prereleased" ]; then echo "This is a prerelease." + else + echo "Unexpected release action." fi Lint: @@ -78,7 +80,7 @@ jobs: Publish: runs-on: ubuntu-latest - needs: Test + needs: [Test, Release-nature] steps: - name: Set up Python