Close a weekly team update issue #101
This file contains 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: Close a weekly team update issue | |
on: | |
schedule: | |
# Run every Monday at 8:00 | |
- cron: "00 08 * * MON" | |
workflow_dispatch: | |
jobs: | |
close-sync-issue: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# Install dependencies | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
pip install ghapi | |
- name: Archive team sync | |
env: | |
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
run: | | |
python scripts/archive-team-update.py | |
- uses: lee-dohm/close-matching-issues@v2.1.0 | |
with: | |
query: 'label:"type: team-update"' | |
token: ${{ secrets.ACCESS_TOKEN }} |