File: post-apiview.yml

package info (click to toggle)
python-azure 20260203%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 793,600 kB
  • sloc: python: 6,552,618; ansic: 804; javascript: 287; sh: 204; makefile: 198; xml: 109
file content (29 lines) | stat: -rw-r--r-- 807 bytes parent folder | download
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
name: After APIView

on:
  check_run:
    types: [completed]
    
permissions:
  pull-requests: write
  contents: read

jobs:
  post-apiview:
    name: After APIView
    runs-on: ubuntu-24.04
    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') )
    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 }}
        shell: pwsh