2023-08-03 23:40:28 +02:00
|
|
|
name: Notify about approved but still open PRs
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *' # Once a day
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
pr-approved-open:
|
2023-08-18 19:40:44 +02:00
|
|
|
if: github.repository_owner == 'vercel'
|
2023-08-03 23:40:28 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 18
|
2023-10-07 00:15:59 +02:00
|
|
|
- run: corepack enable
|
2023-08-03 23:40:28 +02:00
|
|
|
- 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 }}
|