Skip to content

Update Component Detection version from 4.0.11 to 4.2.0 (#519) #1

Update Component Detection version from 4.0.11 to 4.2.0 (#519)

Update Component Detection version from 4.0.11 to 4.2.0 (#519) #1

Workflow file for this run

name: Generate docs
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'src/Microsoft.Sbom.Api/Config/Args/*.cs'
- 'src/Microsoft.Sbom.Common/Config/IConfiguration.cs'
permissions:
contents: write
jobs:
gen-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup .NET
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0
- name: Generate docs
run: |
# Run CLI
dotnet run -p src/Microsoft.Sbom.Tool generate -- -h 2> help.txt || true
cat <<EOF > docs/sbom-tool-arguments.md
# Sbom tool arguments
\`\`\`shell
dotnet run -p './src/Microsoft.Sbom.Tool' generate -- -h
\`\`\`
\`\`\`
$(tail --lines=+4 help.txt)
\`\`\`
EOF
- name: Commit
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0
with:
commit_message: 'Auto update docs/*.md'
file_pattern: 'docs/*.md'