Updated actions.

This commit is contained in:
2025-07-07 21:20:03 -07:00
parent d41bf186fe
commit e6269b4416
3 changed files with 19 additions and 1 deletions

View File

@@ -52,6 +52,7 @@ runs:
with:
version: ${{ inputs.defaultVersion }}
- run: echo "${{ steps.base.outputs.majorMinorPatchVersion }}"
shell: bash
- name: "Get versions."
id: package
uses: act/common/gitea/gitea-query-package-versions-latest@master
@@ -80,8 +81,10 @@ runs:
filter: ^${{ steps.base.outputs.majorMinorPatchVersion }}
prerelease: false
- run: echo "${{ steps.version.outputs.version == '' }}" AND "${{ inputs.prerelease != 'false' }}"
shell: bash
- if: ${{ steps.version.outputs.version == '' && inputs.prerelease != 'false' }}
run: echo "${{ steps.packageFallback.outputs.version }}"
shell: bash
- name: "Get the next version for the package."
uses: act/common/utils/version-increment-branch@master
id: version

View File

@@ -32,6 +32,18 @@ inputs:
description: "Directory to unzip the artifacts into. If not specified, the artifacts will not be unzipped."
required: false
default: ""
nugetSources:
description: "List of additional NuGet sources to use."
required: false
default: "https://gitea.studiowhy.net/api/packages/FORK/nuget/index.json"
nugetUsernames:
description: "List of additional NuGet usernames to use."
required: false
default: "${{ github.actor }}"
nugetPasswords:
description: "List of additional NuGet passwords to use."
required: false
default: "${{ github.token }}"
# outputs:
# query:
# description: "The query result."
@@ -52,3 +64,6 @@ runs:
INPUTS: ${{ toJSON(inputs) }}
with:
command: run "${{ github.action_path }}/download-previous-artifacts.cs"
nugetSources: ${{ inputs.nugetSources }}
nugetUsernames: ${{ inputs.nugetUsernames }}
nugetPasswords: ${{ inputs.nugetPasswords }}

View File

@@ -38,7 +38,7 @@ runs:
echo "::group::$NAME - Inputs"
echo "${{ toJSON(inputs) }}"
echo "::endgroup::"
# GitHub
#ROUTE="/_registry/nuget/${{ inputs.organization }}/query?"
# Gitea