Skip to content

Assign and label PR #2608

Assign and label PR

Assign and label PR #2608

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
if: github.repository_owner == 'MicrosoftDocs'
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
if: github.repository_owner == 'MicrosoftDocs'
needs: [download-payload]
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-AutoLabelAssign.yml@workflows-prod
with:
PayloadJson: ${{ needs.download-payload.outputs.WorkflowPayload }}
AutoAssignUsers: 1
AutoAssignReviewers: 1

Check failure on line 33 in .github/workflows/AutoLabelAssign.yml

View workflow run for this annotation

GitHub Actions / Assign and label PR

Invalid workflow file

The workflow is not valid. .github/workflows/AutoLabelAssign.yml (Line: 33, Col: 34): Invalid input, AutoAssignReviewers is not defined in the referenced workflow. .github/workflows/AutoLabelAssign.yml (Line: 39, Col: 25): Invalid secret, PrivateKey is not defined in the referenced workflow.
AutoLabel: 1
ExcludedUserList: '["user1", "user2"]'
ExcludedBranchList: '["branch1", "branch2"]'
secrets:
AccessToken: ${{ secrets.GITHUB_TOKEN }}
PrivateKey: ${{ secrets.M365_APP_PRIVATE_KEY }}
ClientId: ${{ secrets.M365_APP_CLIENT_ID }}