Skip to content

tests

tests #4

Workflow file for this run

name: Release
on:
push:
branches:
- 'release/**'
- 'preview/**'
# paths:
# - 'src/**'
workflow_call:
permissions:
actions: read
jobs:
global-variables:
name: 'Global variables'
runs-on: ubuntu-latest
outputs:
github-run-id: ${{ github.run_id }}
github-run-number: ${{ github.run_number }}
steps:
- name: 'Global variables'
id: github
run: |
echo "github-run-id:${{ github.run_id }}"
echo "github-run-number:${{ github.run_number }}"
build:
name: Build
uses: ./.github/workflows/build.yml

Check failure on line 33 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 33, Col: 11): Input run-id is required, but not provided while calling. .github/workflows/release.yml (Line: 33, Col: 11): Input run-number is required, but not provided while calling.
secrets: inherit
validate:
name: 'Validate'
needs: [build]
runs-on: ubuntu-latest
steps:
- name: 'Checkout ${{ github.head_ref || github.ref }}'
uses: actions/checkout@v4
- name: 'Validate warnings with .NET CLI'
shell: bash
run: dotnet format analyzers --severity warn --verify-no-changes
publish-package:
name: 'Publish'
uses: ./.github/workflows/publish-nuget-package.yml
needs: [global-variables, validate]
secrets: inherit
with:
artifact-run-id: ${{ needs.global-variables.outputs.github-run-id }}
artifact-name: ${{ needs.build.outputs.package-artifact-name }}
nuget-feed-server: 'NuGet'
environment: 'NuGet'