Skip to content

Commit

Permalink
[skip ci] ci: Remove inputs workflow dispatch in favor of branch matc…
Browse files Browse the repository at this point in the history
…hing
  • Loading branch information
ketozhang committed Jun 17, 2024
1 parent 6b30ff1 commit 4d56d4b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ on:
types:
- created
workflow_dispatch:
inputs:
prerelease:
type: boolean
description: 'Create a GitHub Release with prerelease tag'
default: false

jobs:
publish:
Expand All @@ -38,7 +33,7 @@ jobs:
- name: Build
run: hatch build
- name: Create GitHub Release (prerelease only)
if: github.event.push || github.event.workflow_dispatch.inputs.prerelease
if: startsWith(github.ref, 'refs/heads/v2')
uses: softprops/action-gh-release@v1
with:
prerelease: true
Expand Down

0 comments on commit 4d56d4b

Please sign in to comment.