Label Issues by Creation Date #90
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |