Skip to content

Commit

Permalink
ci: create a draft release on pull requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jodli committed Dec 28, 2024
1 parent 8910c0e commit a3ce0f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -31,7 +34,7 @@ jobs:
release_name: Release v${{ steps.extract_version.outputs.version }}
body: |
Release of creative-mod v${{ steps.extract_version.outputs.version }}
draft: false
draft: ${{ github.event_name == 'pull_request' }}
prerelease: false

- name: Upload Release Asset
Expand Down

0 comments on commit a3ce0f4

Please sign in to comment.