forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 1.18 KB
/
Copy pathpost-apiview.yml
File metadata and controls
37 lines (33 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: After APIView
on:
check_run:
types: [completed]
permissions:
pull-requests: write
contents: read
jobs:
post-apiview:
name: After APIView
runs-on:
[
"self-hosted",
"1ES.Pool=azsdk-pool-github-runners",
"JobId=azsdk-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}",
]
if: |
github.event.check_run.check_suite.app.name == 'Azure Pipelines' && (
contains(github.event.check_run.name, 'Build Build') ||
contains(github.event.check_run.name, 'Build Analyze') ||
contains(github.event.check_run.name, 'SDK Validation') )
steps:
- name: Checkout
uses: actions/checkout@v6
with:
sparse-checkout: "eng/common"
- name: Create APIView Comment on PR
run: |
. "eng/common/scripts/Helpers/ApiView-Helpers.ps1"
Set-ApiViewCommentForRelatedIssues -HeadCommitish ${{ github.event.check_run.head_sha }} -AuthToken ${{ secrets.GITHUB_TOKEN }} -GitHubActionRunUrl $env:GITHUB_ACTION_RUN_URL
shell: pwsh
env:
GITHUB_ACTION_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}