Skip to content

Commit

Permalink
Update publish.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
JeelDobariya38 committed Nov 11, 2023
1 parent 62bd552 commit 2227ca5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -78,7 +80,7 @@ jobs:
Publish:
runs-on: ubuntu-latest

needs: Test
needs: [Test, Release-nature]

steps:
- name: Set up Python
Expand Down

0 comments on commit 2227ca5

Please sign in to comment.