Skip to content

Commit

Permalink
ci: update prerelease condition for setup release action (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Oct 22, 2023
1 parent 34b33ac commit 57d76be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ jobs:
run: |
if [ "${{ github.event_name }}" == "pull_request" ]; then
discussion_category=tests
publish_stable_release=False
publish_pre_release=true
release_tag=pr-${{ github.event.pull_request.number }}-${{ github.run_id }}
token=${{ secrets.GITHUB_TOKEN }}
else
discussion_category=announcements
publish_stable_release=${{ steps.setup-release.outputs.publish_stable_release }}
publish_pre_release=${{ steps.setup-release.outputs.publish_pre_release }}
release_tag=${{ steps.setup-release.outputs.release_tag }}
token=${{ secrets.GH_BOT_TOKEN }}
fi
Expand All @@ -59,7 +59,7 @@ jobs:
discussionCategory: ${{ steps.vars.outputs.discussion_category }}
generateReleaseNotes: true
name: ${{ steps.vars.outputs.release_tag }}
prerelease: ${{ steps.vars.outputs.publish_stable_release != 'True' }}
prerelease: ${{ steps.vars.outputs.publish_pre_release == 'true' }}
tag: ${{ steps.vars.outputs.release_tag }}
token: ${{ steps.vars.outputs.token }}

Expand Down

0 comments on commit 57d76be

Please sign in to comment.