Skip to content

Surface High Engagement Issues #25

Surface High Engagement Issues

Surface High Engagement Issues #25

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@v2
- name: Set up Python
uses: actions/setup-python@v2
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