chore(deps): update dependency stylecop.analyzers to v1.2.0-beta.507 … #11
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
name: 'Generate docs' | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'src/Microsoft.ComponentDetection.Orchestrator/ArgumentSets/*.cs' | |
permissions: | |
contents: read | |
jobs: | |
gen-docs: | |
permissions: | |
contents: write # for stefanzweifel/git-auto-commit-action to push code in repo | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@3447fd6a9f9e57506b15f895c5b76d3b197dc7c2 # v3 | |
- name: Generate docs | |
run: | | |
touch version.json | |
touch version_dev.json | |
# Run CLI | |
dotnet run -p src/Microsoft.ComponentDetection help scan 2> help.txt || true | |
cat <<EOF > docs/detector-arguments.md | |
# Detector arguments | |
\`\`\`shell | |
dotnet run -p './src/Microsoft.ComponentDetection' help scan | |
\`\`\` | |
\`\`\` | |
$(tail --lines=+4 help.txt) | |
\`\`\` | |
EOF | |
- name: Commit | |
uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a # v4 | |
with: | |
commit_message: 'Update docs' | |
file_pattern: '*.md' |