Notify about approved but still open PRs #45
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
name: Notify about approved but still open PRs | |
on: | |
schedule: | |
- cron: '0 0 * * *' # Once a day | |
workflow_dispatch: | |
jobs: | |
pr-approved-open: | |
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 }} |