forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (33 loc) · 981 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
33
34
35
on:
pull_request:
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-22.04
if: >-
${{
github.repository == 'envoyproxy/envoy'
&& (github.event.schedule
|| !contains(github.actor, '[bot]'))
}}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Notify about PRs
run: |
ARGS=()
if [[ "${{ github.event_name }}" == 'pull_request' ]]; then
ARGS+=(--dry_run)
fi
bazel run //tools/repo:notify -- "${ARGS[@]}"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}