rsnext/.github/workflows/pull_request_approved.yml
Balázs Orbán 725ddc7371
chore: skip CI run on forks (#54219)
Running the action added in #53541 on forks will result in always failing, so we can skip it.

Fixes #54210
2023-08-18 17:40:44 +00:00

21 lines
563 B
YAML

name: Notify about approved but still open PRs
on:
schedule:
- cron: '0 0 * * *' # Once a day
workflow_dispatch:
jobs:
pr-approved-open:
if: github.repository_owner == 'vercel'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: 'Send notification to Slack'
run: node ./.github/actions/pr-approved-open/index.mjs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}