Surface High Engagement Issues #1
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: Surface High Engagement Issues | |
on: | |
schedule: | |
- cron: '0 0 * * *' # Runs every day at midnight UTC | |
workflow_dispatch: | |
inputs: | |
new_comment_interval_days: | |
description: 'Interval in days to check for new comments' | |
required: true | |
default: '1' | |
jobs: | |
surface-high-engagement-issues: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install httpx | |
- name: Set NEW_COMMENT_INTERVAL_DAYS | |
run: echo "NEW_COMMENT_INTERVAL_DAYS=${{ github.event.inputs.new_comment_interval_days }}" >> $GITHUB_ENV | |
- name: Run surface_high_engagement_issues script | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NEW_COMMENT_INTERVAL_DAYS: ${{ env.NEW_COMMENT_INTERVAL_DAYS }} | |
run: | | |
python scripts/surface_high_engagement_issues.py |