mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
01a3c5be8a
Replaces every floating tag in our workflow and composite action files with an immutable 40-character commit SHA, keeping the original `# vX` comment so Dependabot can still propose version bumps. 186 occurrences across 25 workflows and 2 composite actions. Also widens the github-actions Dependabot entry to use the plural `directories` key with `/.github/actions/*` so composite actions under `.github/actions/<name>/action.yml` are kept up to date. Previously Dependabot only scanned `.github/workflows` and the repo-root `action.yml`, leaving our `python-setup` and `sample-validation-setup` composite actions unmaintained.
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
name: Stale issue and PR ping
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * *' # Midnight UTC daily
|
|
workflow_dispatch:
|
|
inputs:
|
|
days_threshold:
|
|
description: 'Days of silence before pinging the author'
|
|
required: false
|
|
default: '4'
|
|
dry_run:
|
|
description: 'Log what would be pinged without taking action'
|
|
required: false
|
|
default: 'false'
|
|
type: choice
|
|
options:
|
|
- 'false'
|
|
- 'true'
|
|
|
|
concurrency:
|
|
group: stale-issue-pr-ping
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
ping_stale:
|
|
name: "Ping stale issues and PRs"
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
issues: write
|
|
pull-requests: write
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
|
|
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
|
|
with:
|
|
python-version: '3.13'
|
|
|
|
- name: Install dependencies
|
|
run: pip install PyGithub==2.6.0
|
|
|
|
- name: Run stale issue/PR ping
|
|
run: python .github/scripts/stale_issue_pr_ping.py
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GH_ACTIONS_PR_WRITE }}
|
|
TEAM_SLUG: ${{ secrets.DEVELOPER_TEAM }}
|
|
DAYS_THRESHOLD: ${{ github.event.inputs.days_threshold || '4' }}
|
|
DRY_RUN: ${{ github.event.inputs.dry_run || 'false' }}
|