Skip to content

Commit 54e3fe6

Browse files
authored
Sync .github/workflows directory with azure-sdk-tools repository (#40690)
1 parent e797804 commit 54e3fe6

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/post-apiview.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: After APIView
2+
3+
on:
4+
check_run:
5+
types: [completed]
6+
7+
permissions:
8+
pull-requests: write
9+
contents: read
10+
11+
jobs:
12+
post-apiview:
13+
name: After APIView
14+
runs-on: ubuntu-24.04
15+
if: |
16+
github.event.check_run.check_suite.app.name == 'Azure Pipelines' && (
17+
contains(github.event.check_run.name, 'Build Build') ||
18+
contains(github.event.check_run.name, 'Build Analyze') )
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
with:
23+
sparse-checkout: 'eng/common'
24+
25+
- name: Create APIView Comment on PR
26+
run: |
27+
. "eng/common/scripts/Helpers/ApiView-Helpers.ps1"
28+
Set-ApiViewCommentForRelatedIssues -HeadCommitish ${{ github.event.check_run.head_sha }} -AuthToken ${{ secrets.GITHUB_TOKEN }}
29+
shell: pwsh

0 commit comments

Comments
 (0)