Skip to content

Commit a61c2bc

Browse files
authored
Add YML file (#28489)
1 parent 434a39c commit a61c2bc

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: MSDocs build verifier - tryfix
2+
on:
3+
issue_comment:
4+
types: [created]
5+
6+
jobs:
7+
tryfix:
8+
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/tryfix')
9+
name: Try fix build
10+
runs-on: ubuntu-latest
11+
env:
12+
IS_TRY_FIX: true # differentiates /tryfix from the validation-only run.
13+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
steps:
15+
- name: Checkout the repository
16+
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 #@v2
17+
- name: Checkout Pull Request
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
run: |
21+
PR_URL="${{ github.event.issue.pull_request.url }}"
22+
PR_NUM=${PR_URL##*/}
23+
echo "Checking out from PR #$PR_NUM based on URL: $PR_URL"
24+
hub pr checkout $PR_NUM
25+
- name: Tryfix
26+
uses: dotnet/docs-actions/actions/docs-verifier@youssef-testing
27+
28+
- name: Push changes
29+
run: |
30+
git config --global user.name github-actions
31+
git config --global user.email github-actions@github.com
32+
git commit -am "Automated: Fix links"
33+
git push

0 commit comments

Comments
 (0)