-
Notifications
You must be signed in to change notification settings - Fork 196
42 lines (35 loc) · 1.2 KB
/
AutoIssueAssign.yml
File metadata and controls
42 lines (35 loc) · 1.2 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
name: (Scheduled) Auto issue assign
permissions:
contents: read
issues: write
on:
schedule:
- cron: "26 21 * * *"
workflow_dispatch:
jobs:
config:
if: github.repository_owner == 'MicrosoftDocs'
runs-on: ubuntu-latest
outputs:
ExcludedUserList: ${{ steps.read.outputs.ExcludedUserList }}
steps:
- uses: actions/checkout@v5
with:
sparse-checkout: .github/workflow-config.json
sparse-checkout-cone-mode: false
- id: read
shell: pwsh
run: |
$Config = (Get-Content '.github/workflow-config.json' | ConvertFrom-Json).AutoIssueAssign
"ExcludedUserList=$($Config.ExcludedUserList | ConvertTo-Json -Compress)" >> $Env:GITHUB_OUTPUT
stale-branch:
if: github.repository_owner == 'MicrosoftDocs'
needs: config
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-AutoIssueAssign.yml@workflows-prod
with:
PayloadJson: ${{ toJSON(github) }}
ExcludedUserList: ${{ needs.config.outputs.ExcludedUserList }}
secrets:
AccessToken: ${{ secrets.GITHUB_TOKEN }}
PrivateKey: ${{ secrets.M365_APP_PRIVATE_KEY }}
ClientId: ${{ secrets.M365_APP_CLIENT_ID }}