File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ name: Unlist NuGet
22
33on :
44 workflow_dispatch :
5+ inputs :
6+ version :
7+ description : ' Version to unlist'
8+ required : true
9+ type : string
510 # release:
611 # types: [deleted]
712
@@ -19,11 +24,14 @@ jobs:
1924 steps :
2025 - name : Checkout code
2126 uses : actions/checkout@v4
22-
27+
28+ - name : Debug version input
29+ run : echo "Version to unlist: ${{ github.event.release.tag_name || github.event.inputs.version }}"
30+
2331 # Unlist
2432 - name : Unlist Deleted Tag
2533 uses : darenm/unlist-nuget@v1
2634 with :
2735 NUGET_PACKAGE : ${{ env.PROJECT_NAME }} # Full Package ID
28- VERSION_REGEX : ${{ github.event.release.tag_name }} # Regex pattern to match version
29- NUGET_KEY : ${{ secrets.NUGET_API_KEY }} # nuget.org API key
36+ VERSION_REGEX : ${{ github.event.release.tag_name || github.event.inputs. version }}
37+ NUGET_KEY : ${{ secrets.NUGET_API_KEY }} # nuget.org API key
Original file line number Diff line number Diff line change 33 <PropertyGroup >
44 <MajorVersion >3</MajorVersion >
55 <MinorVersion >0</MinorVersion >
6- <PatchVersion >4 </PatchVersion >
6+ <PatchVersion >5 </PatchVersion >
77 </PropertyGroup >
88 <!-- Disable automatic package publishing -->
99 <PropertyGroup >
You can’t perform that action at this time.
0 commit comments