Skip to content

Label Issues by Creation Date #90

Label Issues by Creation Date

Label Issues by Creation Date #90

name: Label Issues by Creation Date
on:
# Run daily at midnight UTC
schedule:
- cron: "0 0 * * *"
# Allow manual trigger
workflow_dispatch:
jobs:
label-by-date:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: pip install requests
- name: Label issues by creation date
run: python scripts/label_by_date.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}