From e6269b4416e883d0443659c949e1844d4000de6e Mon Sep 17 00:00:00 2001 From: Scion Date: Mon, 7 Jul 2025 21:20:03 -0700 Subject: [PATCH] Updated actions. --- gitea/gitea-get-next-branched-version/action.yaml | 3 +++ github/download-previous-artifacts/action.yaml | 15 +++++++++++++++ github/github-query-nuget/action.yaml | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/gitea/gitea-get-next-branched-version/action.yaml b/gitea/gitea-get-next-branched-version/action.yaml index d386cc6..493b2d7 100644 --- a/gitea/gitea-get-next-branched-version/action.yaml +++ b/gitea/gitea-get-next-branched-version/action.yaml @@ -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 diff --git a/github/download-previous-artifacts/action.yaml b/github/download-previous-artifacts/action.yaml index af8c101..3a39f0d 100644 --- a/github/download-previous-artifacts/action.yaml +++ b/github/download-previous-artifacts/action.yaml @@ -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 }} diff --git a/github/github-query-nuget/action.yaml b/github/github-query-nuget/action.yaml index d41ed55..c0bf245 100644 --- a/github/github-query-nuget/action.yaml +++ b/github/github-query-nuget/action.yaml @@ -38,7 +38,7 @@ runs: echo "::group::$NAME - Inputs" echo "${{ toJSON(inputs) }}" echo "::endgroup::" - + # GitHub #ROUTE="/_registry/nuget/${{ inputs.organization }}/query?" # Gitea