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: with:
version: ${{ inputs.defaultVersion }} version: ${{ inputs.defaultVersion }}
- run: echo "${{ steps.base.outputs.majorMinorPatchVersion }}" - run: echo "${{ steps.base.outputs.majorMinorPatchVersion }}"
shell: bash
- name: "Get versions." - name: "Get versions."
id: package id: package
uses: act/common/gitea/gitea-query-package-versions-latest@master uses: act/common/gitea/gitea-query-package-versions-latest@master
@@ -80,8 +81,10 @@ runs:
filter: ^${{ steps.base.outputs.majorMinorPatchVersion }} filter: ^${{ steps.base.outputs.majorMinorPatchVersion }}
prerelease: false prerelease: false
- run: echo "${{ steps.version.outputs.version == '' }}" AND "${{ inputs.prerelease != 'false' }}" - run: echo "${{ steps.version.outputs.version == '' }}" AND "${{ inputs.prerelease != 'false' }}"
shell: bash
- if: ${{ steps.version.outputs.version == '' && inputs.prerelease != 'false' }} - if: ${{ steps.version.outputs.version == '' && inputs.prerelease != 'false' }}
run: echo "${{ steps.packageFallback.outputs.version }}" run: echo "${{ steps.packageFallback.outputs.version }}"
shell: bash
- name: "Get the next version for the package." - name: "Get the next version for the package."
uses: act/common/utils/version-increment-branch@master uses: act/common/utils/version-increment-branch@master
id: version 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." description: "Directory to unzip the artifacts into. If not specified, the artifacts will not be unzipped."
required: false required: false
default: "" 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: # outputs:
# query: # query:
# description: "The query result." # description: "The query result."
@@ -52,3 +64,6 @@ runs:
INPUTS: ${{ toJSON(inputs) }} INPUTS: ${{ toJSON(inputs) }}
with: with:
command: run "${{ github.action_path }}/download-previous-artifacts.cs" command: run "${{ github.action_path }}/download-previous-artifacts.cs"
nugetSources: ${{ inputs.nugetSources }}
nugetUsernames: ${{ inputs.nugetUsernames }}
nugetPasswords: ${{ inputs.nugetPasswords }}