Skip to content

Do I have to do this? #1

Do I have to do this?

Do I have to do this? #1

# Intended to be called from a "prereleased" release event
name: Pre-Release
on:
workflow_call:
inputs:
project_or_solution:
description: 'The project or solution file to build. If not specified, the action will look for a .sln or .csproj file in the root of the repository.'
required: false
type: string
nuget_version:
description: 'NuGet Version for the package'
required: true
type: string
dotnet_assembly_version:
description: '.NET Assembly Version'
required: true
type: string
skip_tests:
description: 'Skip running tests'
required: false
type: boolean
default: false
jobs:
build_test_pack_push_nugetorg:
name: nuget.org
permissions:
checks: write
contents: read
packages: write
uses: ./.github/workflows/dotnet-build-test-pack-push-default.yml@nuget-trusted-publishing

Check failure on line 32 in .github/workflows/build-test-pack-push-nuget-org.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-test-pack-push-nuget-org.yml

Invalid workflow file

invalid value workflow reference: cannot specify version when calling local workflows
with:
project_or_solution: ${{ inputs.project_or_solution }}
nuget_version: ${{ inputs.nuget_version }}
dotnet_assembly_version: ${{ inputs.dotnet_assembly_version }}
nuget_source: ${{ vars.NC_NUGET_ORG_API_SOURCE_URL }}
skip_tests: ${{ inputs.skip_tests }}
secrets:
nuget_api_key: ${{ secrets.NC_NUGET_ORG_API_KEY }}