Skip to content

Commit

Permalink
fix(actions): prevent accidentially releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Jan 3, 2024
1 parent d76c831 commit 80d2d59
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ on:
description: "Release as pre-release"
required: true
type: boolean
default: true
confirm_full_release:
description: "Confirm that you want to release as a full release"
required: false
type: boolean
default: false

env:
DOTNET_NOLOGO: true
Expand All @@ -29,6 +35,13 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Check Intention
if: ${{!inputs.release_as_prerelease}}
run: |
if [ "${{ inputs.confirm_full_release }}" = "false" ]; then
echo "Full release not confirmed, exiting."
exit 1
fi
- name: Setup .NET
uses: actions/[email protected]
with:
Expand Down

0 comments on commit 80d2d59

Please sign in to comment.