This commit is contained in:
2026-01-05 12:20:35 -08:00
parent bb1dcd7418
commit d1422cb1b4
5 changed files with 7 additions and 7 deletions

View File

@@ -69,7 +69,7 @@ runs:
- name: "If no version is found, get the latest version for the package if we didn't already look for it." - name: "If no version is found, get the latest version for the package if we didn't already look for it."
uses: act/common/gitea/gitea-query-package-versions-latest@master uses: act/common/gitea/gitea-query-package-versions-latest@master
id: packageFallback id: packageFallback
if: ${{ steps.version.outputs.version == '' && inputs.prerelease != 'false' }} if: ${{ !steps.version.outputs.version && inputs.prerelease != 'false' }}
with: with:
url: ${{ inputs.url }} url: ${{ inputs.url }}
organization: ${{ inputs.organization }} organization: ${{ inputs.organization }}
@@ -80,9 +80,9 @@ runs:
name: ${{ inputs.name }} name: ${{ inputs.name }}
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 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 shell: bash
- name: "Get the next version for the package." - name: "Get the next version for the package."

View File

@@ -95,7 +95,7 @@ runs:
buildScript: ${{ inputs.buildScript }} buildScript: ${{ inputs.buildScript }}
outputDirectory: ${{ inputs.outputDirectory }} outputDirectory: ${{ inputs.outputDirectory }}
registry: ${{ inputs.registry }} registry: ${{ inputs.registry }}
skipInstall: ${{ steps.pack_comparison.conclusion != '' }} skipInstall: ${{ steps.pack_comparison.conclusion }}
- name: "Generate package outputs" - name: "Generate package outputs"
id: package id: package
run: | run: |

View File

@@ -55,7 +55,7 @@ runs:
working-directory: ${{ inputs.workingDirectory }} working-directory: ${{ inputs.workingDirectory }}
shell: bash shell: bash
- name: "Build package" - name: "Build package"
if: ${{ inputs.buildScript != '' }} if: ${{ inputs.buildScript }}
run: npm run ${{ inputs.buildScript }} run: npm run ${{ inputs.buildScript }}
working-directory: ${{ inputs.workingDirectory }} working-directory: ${{ inputs.workingDirectory }}
shell: bash shell: bash

View File

@@ -59,7 +59,7 @@ runs:
cache: npm cache: npm
cache-dependency-path: ${{ inputs.workingDirectory }}/package-lock.json cache-dependency-path: ${{ inputs.workingDirectory }}/package-lock.json
- name: "Configure npm authentication" - name: "Configure npm authentication"
if: ${{ inputs.registries != '' && inputs.apiKeys != '' }} if: ${{ inputs.registries && inputs.apiKeys }}
run: | run: |
bash "${{ github.action_path }}/configure-auth.sh" add "${{ inputs.registries }}" "${{ inputs.apiKeys }}" bash "${{ github.action_path }}/configure-auth.sh" add "${{ inputs.registries }}" "${{ inputs.apiKeys }}"
working-directory: ${{ inputs.workingDirectory }} working-directory: ${{ inputs.workingDirectory }}

View File

@@ -55,7 +55,7 @@ runs:
- name: "If no version is found, get the latest version for the package if we didn't already look for it." - name: "If no version is found, get the latest version for the package if we didn't already look for it."
uses: act/common/github/github-query-nuget-versions-latest@master uses: act/common/github/github-query-nuget-versions-latest@master
id: nugetFallback id: nugetFallback
if: ${{ steps.nuget.outputs.version == '' && inputs.prerelease != 'false' }} if: ${{ !steps.nuget.outputs.version && inputs.prerelease != 'false' }}
with: with:
name: ${{ inputs.name }} name: ${{ inputs.name }}
url: ${{ inputs.url }} url: ${{ inputs.url }}