Assign and label PR #104
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Assign and label PR | |
permissions: | |
pull-requests: write | |
contents: read | |
actions: read | |
on: | |
workflow_run: | |
workflows: [Background tasks] | |
types: | |
- completed | |
jobs: | |
download-payload: | |
name: Download and extract payload artifact | |
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-ExtractPayload.yml@workflows-prod | |
with: | |
WorkflowId: ${{ github.event.workflow_run.id }} | |
OrgRepo: ${{ github.repository }} | |
secrets: | |
AccessToken: ${{ secrets.GITHUB_TOKEN }} | |
label-assign: | |
name: Run assign and label | |
needs: [download-payload] | |
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-AutoLabelAssign.yml@workflows-prod | |
with: | |
PayloadJson: ${{ needs.download-payload.outputs.WorkflowPayload }} | |
AutoAssignUsers: 0 | |
AutoLabel: 0 | |
ExcludedUserList: '["user1", "user2"]' | |
ExcludedBranchList: '["branch1", "branch2"]' | |
secrets: | |
AccessToken: ${{ secrets.GITHUB_TOKEN }} |