diff --git a/.github/workflows/unlist-nuget.yml b/.github/workflows/unlist-nuget.yml
index d85f55f7..f0e0a2bd 100644
--- a/.github/workflows/unlist-nuget.yml
+++ b/.github/workflows/unlist-nuget.yml
@@ -2,6 +2,11 @@ name: Unlist NuGet
on:
workflow_dispatch:
+ inputs:
+ version:
+ description: 'Version to unlist'
+ required: true
+ type: string
# release:
# types: [deleted]
@@ -19,11 +24,14 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
-
+
+ - name: Debug version input
+ run: echo "Version to unlist: ${{ github.event.release.tag_name || github.event.inputs.version }}"
+
# Unlist
- name: Unlist Deleted Tag
uses: darenm/unlist-nuget@v1
with:
NUGET_PACKAGE: ${{ env.PROJECT_NAME }} # Full Package ID
- VERSION_REGEX: ${{ github.event.release.tag_name }} # Regex pattern to match version
- NUGET_KEY: ${{ secrets.NUGET_API_KEY }} # nuget.org API key
\ No newline at end of file
+ VERSION_REGEX: ${{ github.event.release.tag_name || github.event.inputs.version }}
+ NUGET_KEY: ${{ secrets.NUGET_API_KEY }} # nuget.org API key
diff --git a/Directory.Build.props b/Directory.Build.props
index 49e7f4a1..d3ce2f6a 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -3,7 +3,7 @@
3
0
- 4
+ 5