Send reviewable PRs to Mattermost #139
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: Send reviewable PRs to Mattermost | |
on: | |
schedule: | |
- cron: '0 9 * * 1-5' | |
jobs: | |
notify: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/github-script@v7 | |
id: list | |
with: | |
script: | | |
const script = require('./scripts/gh-pr.js') | |
await script({github, context, core}) | |
- name: Send to Mattermost | |
uses: mattermost/action-mattermost-notify@master | |
with: | |
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} | |
TEXT: "## PRs à review \n ${{ steps.list.outputs.prs }}" |