Skip to content

Commit

Permalink
Merge pull request #73 from apyb/notificar-lista
Browse files Browse the repository at this point in the history
Workflow para notificar novas discussões na lista de emails
  • Loading branch information
rougeth authored Apr 9, 2023
2 parents 50fb846 + 7d7e4a7 commit 379cd03
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/notificar-lista-de-emails.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Notifica Lista de E-mail da Associação
on:
discussion:
types: [created]

jobs:
notify_associates:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Instala apyb-bot
run: pip install git+https://github.com/apyb/apyb-bot.git

- name: Notifica lista de e-mail da APyB
env:
APYB_BOT_GITHUB_TOKEN: ${{ secrets.APYB_BOT_GITHUB_TOKEN }}
APYB_BOT_NO_REPLY_PASSWORD: ${{ secrets.APYB_BOT_NO_REPLY_PASSWORD }}
APYB_BOT_SEND_TO: ${{ secrets.APYB_BOT_SEND_TO }}
run: apyb-bot github:new-discussion-notification --id ${{ github.event.discussion.number }}

0 comments on commit 379cd03

Please sign in to comment.