.github/workflows/pr_notifier.yml #107
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
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 5 * * 1,2,3,4,5' | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
pr_notifier: | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
statuses: read # for pr_notifier.py | |
pull-requests: read # for pr_notifier.py | |
name: PR Notifier | |
runs-on: ubuntu-20.04 | |
if: github.repository == 'envoyproxy/envoy' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 | |
with: | |
python-version: '3.8' | |
architecture: 'x64' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r ./.github/actions/pr_notifier/requirements.txt | |
- name: Notify about PRs | |
run: python ./.github/actions/pr_notifier/pr_notifier.py --cron_job | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |