From 068757046f4c740ff951600bd34db0c393d9706c Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 23 Apr 2025 14:19:18 -0700 Subject: [PATCH] Sync .github/workflows directory with azure-sdk-tools repository (#6538) --- .github/workflows/post-apiview.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/post-apiview.yml diff --git a/.github/workflows/post-apiview.yml b/.github/workflows/post-apiview.yml new file mode 100644 index 000000000..4306a63ac --- /dev/null +++ b/.github/workflows/post-apiview.yml @@ -0,0 +1,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@v4 + 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