Test
This commit is contained in:
@@ -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."
|
||||
uses: act/common/gitea/gitea-query-package-versions-latest@master
|
||||
id: packageFallback
|
||||
if: ${{ steps.version.outputs.version == '' && inputs.prerelease != 'false' }}
|
||||
if: ${{ !steps.version.outputs.version && inputs.prerelease != 'false' }}
|
||||
with:
|
||||
url: ${{ inputs.url }}
|
||||
organization: ${{ inputs.organization }}
|
||||
@@ -80,9 +80,9 @@ runs:
|
||||
name: ${{ inputs.name }}
|
||||
filter: ^${{ steps.base.outputs.majorMinorPatchVersion }}
|
||||
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 }}"
|
||||
shell: bash
|
||||
- name: "Get the next version for the package."
|
||||
|
||||
@@ -95,7 +95,7 @@ runs:
|
||||
buildScript: ${{ inputs.buildScript }}
|
||||
outputDirectory: ${{ inputs.outputDirectory }}
|
||||
registry: ${{ inputs.registry }}
|
||||
skipInstall: ${{ steps.pack_comparison.conclusion != '' }}
|
||||
skipInstall: ${{ steps.pack_comparison.conclusion }}
|
||||
- name: "Generate package outputs"
|
||||
id: package
|
||||
run: |
|
||||
|
||||
@@ -55,7 +55,7 @@ runs:
|
||||
working-directory: ${{ inputs.workingDirectory }}
|
||||
shell: bash
|
||||
- name: "Build package"
|
||||
if: ${{ inputs.buildScript != '' }}
|
||||
if: ${{ inputs.buildScript }}
|
||||
run: npm run ${{ inputs.buildScript }}
|
||||
working-directory: ${{ inputs.workingDirectory }}
|
||||
shell: bash
|
||||
|
||||
@@ -59,7 +59,7 @@ runs:
|
||||
cache: npm
|
||||
cache-dependency-path: ${{ inputs.workingDirectory }}/package-lock.json
|
||||
- name: "Configure npm authentication"
|
||||
if: ${{ inputs.registries != '' && inputs.apiKeys != '' }}
|
||||
if: ${{ inputs.registries && inputs.apiKeys }}
|
||||
run: |
|
||||
bash "${{ github.action_path }}/configure-auth.sh" add "${{ inputs.registries }}" "${{ inputs.apiKeys }}"
|
||||
working-directory: ${{ inputs.workingDirectory }}
|
||||
|
||||
@@ -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."
|
||||
uses: act/common/github/github-query-nuget-versions-latest@master
|
||||
id: nugetFallback
|
||||
if: ${{ steps.nuget.outputs.version == '' && inputs.prerelease != 'false' }}
|
||||
if: ${{ !steps.nuget.outputs.version && inputs.prerelease != 'false' }}
|
||||
with:
|
||||
name: ${{ inputs.name }}
|
||||
url: ${{ inputs.url }}
|
||||
|
||||
Reference in New Issue
Block a user