Notify about open PRs #65
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 open PRs | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 6 * * 1-5" | |
jobs: | |
send_open_prs: | |
name: Fetch and send open PRs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fetch open PRs | |
id: fetch_open_prs | |
uses: vrk-kpa/fetch-open-prs@main | |
with: | |
repository: '["vrk-kpa/opendata", "vrk-kpa/ckanext-matomo"]' | |
format: "markdown" | |
ignored_users: '["dependabot[bot]"]' | |
- name: Print | |
run: echo "${{ steps.fetch_open_prs.outputs.PRs }}" | |
- name: Send to zulip | |
uses: zulip/github-actions-zulip/send-message@v1 | |
if: ${{ steps.fetch_open_prs.outputs.PRs }} | |
with: | |
api-key: ${{ secrets.ZULIP_API_KEY }} | |
email: '[email protected]' | |
organization-url: 'https://turina.dvv.fi' | |
to: 'avoindata.fi' | |
type: 'stream' | |
topic: 'Avoimet koodikatselmoinnit' | |
content: '${{ steps.fetch_open_prs.outputs.PRs }}' | |