Skip to content

After APIView

After APIView #400933

Workflow file for this run

name: After APIView
on:
check_run:
types: [completed]
permissions:
pull-requests: write
contents: read
jobs:
post-apiview:
name: After APIView
runs-on: ${{ github.repository == 'Azure/azure-rest-api-specs' && 'azsdk-pool-github-test' || 'azsdk-pool-github-test-pr' }}
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 }}