Skip to content

(Scheduled) Mark stale pull requests #1591

(Scheduled) Mark stale pull requests

(Scheduled) Mark stale pull requests #1591

Workflow file for this run

name: (Scheduled) Mark stale pull requests
permissions:
contents: read
issues: write
pull-requests: write
on:
schedule:
- cron: "0 */6 * * *"
workflow_dispatch:
jobs:
config:
if: github.repository_owner == 'MicrosoftDocs'
runs-on: ubuntu-latest
outputs:
RunDebug: ${{ steps.read.outputs.RunDebug }}
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).Stale
"RunDebug=$("$($Config.RunDebug)".ToLower())" >> $Env:GITHUB_OUTPUT
stale:
if: github.repository_owner == 'MicrosoftDocs'
needs: config
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-Stale.yml@workflows-prod
with:
RunDebug: ${{ fromJSON(needs.config.outputs.RunDebug) }}
RepoVisibility: ${{ github.repository_visibility }}
secrets:
AccessToken: ${{ secrets.GITHUB_TOKEN }}