alternate workflow for "dotnet-format" to accommodate documentation-only PRs (#3133)

This commit is contained in:
Timothy Mothra 2022-04-01 14:14:54 -07:00 committed by GitHub
parent bab31807ed
commit d3c0c6ed61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

21
.github/workflows/dotnet-format-md.yml vendored Normal file
View File

@ -0,0 +1,21 @@
# Syntax: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
# See also: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
# Description: This workflow exists to unblock documentation-only PRs.
# IMPORTANT: This workflow MUST use the same 'name' and 'matrix' as the non -md workflow.
name: dotnet format
on:
pull_request:
branches: [ main ]
paths:
- '**.md'
jobs:
check-format:
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required"'