-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2201 from vrk-kpa/add_open_pr_notify_action
Add action for notifying on open PRs
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
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" | ||
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 | ||
with: | ||
api-key: ${{ secrets.ZULIP_API_KEY }} | ||
email: 'avoindata-bot@turina.dvv.fi' | ||
organization-url: 'https://turina.dvv.fi' | ||
to: 'avoindata.fi' | ||
type: 'stream' | ||
topic: 'Avoimet koodikatselmoinnit' | ||
content: '${{ steps.fetch_open_prs.outputs.PRs }}' | ||
|