forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 999 Bytes
/
pr_notifier.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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-latest
if: github.repository == 'envoyproxy/envoy'
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
- name: Set up Python 3.8
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984
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 }}