.github/workflows/pr_notifier.yml #1135
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: | |
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@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- name: Notify about PRs | |
run: | | |
ARGS=() | |
if [[ "${{ github.event_name }}" == 'pull_request' ]]; then | |
ARGS+=(--dry_run) | |
fi | |
bazel run --config=ci //tools/repo:notify -- "${ARGS[@]}" | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |