Update custom resource commands section of aspire 9 docs page #2551
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: Snippets 5000 | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events on the main branch only. | |
on: | |
pull_request: | |
branches: [main] | |
types: [opened, synchronize, reopened] | |
workflow_dispatch: | |
inputs: | |
reason: | |
description: "The reason for running the workflow" | |
required: true | |
default: "Manual run" | |
env: | |
DOTNET_VERSION: '9.0.x' # set this to the dot net version to use | |
EnableNuGetPackageRestore: "True" | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
permissions: | |
contents: read | |
jobs: | |
# This workflow contains a single job called "snippets-build" | |
snippets-build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
permissions: | |
statuses: write | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Harden Runner | |
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
# Get the latest preview SDK (or sdk not installed by the runner) | |
- name: Setup .NET | |
uses: actions/setup-dotnet@3e891b0cb619bf60e2c25674b222b8940e2c1c25 # main | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
# Print dotnet info | |
- name: Display .NET info | |
run: | | |
dotnet --info | |
# Clone docs tools repo | |
- name: Clone docs-tools repository | |
run: | | |
git clone https://github.com/dotnet/docs-tools | |
# Run snippets 5000 | |
- name: Run snippets 5000 for PR | |
env: | |
GitHubKey: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
dotnet run --project docs-tools/snippets5000/Snippets5000/Snippets5000.csproj -- --sourcepath "${{ github.workspace }}" --pullrequest ${{ github.event.number }} --owner ${{ github.repository_owner }} --repo ${{ github.event.repository.name }} | |
# Update build output json file | |
- name: Upload build results | |
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 #@v4.4.3 | |
with: | |
name: build | |
path: ./output.json |