Validate branch names #10
This file contains hidden or 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: Validate branch names | |
on: | |
create | |
jobs: | |
validate-branch-name: | |
if: github.repository == 'MicrosoftDocs/SupportArticles-docs-pr' && startsWith(github.ref, 'refs/heads/') | |
runs-on: windows-latest | |
strategy: | |
fail-fast: true # Prevent retries on failure | |
steps: | |
- name: Set git to use long paths | |
run: git config --system core.longpaths true | |
- name: Try checkout | |
uses: actions/checkout@v3 |