Skip to content

Commit

Permalink
fix: set python version as 3.11.8
Browse files Browse the repository at this point in the history
  • Loading branch information
naanadr committed Apr 22, 2024
1 parent 7f580bb commit 2472ec2
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/notificar-lista-de-emails.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
name: Notifica Lista de E-mail da Associação
on:
workflow_dispatch:
inputs:
number:
description: 'GitHub Discussion Number'
required: true
email_test:
description: 'Emal that will receive the test message'
required: true
discussion:
types: [created]

Expand All @@ -9,16 +17,27 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Python 3.11
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: '3.11.8'

- name: Instala apyb-bot
run: pip install git+https://github.com/apyb/apyb-bot.git

- name: Notifica lista de e-mail da APyB
if: ${{ github.event.inputs.number == '' }}
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 }}

- name: Execução de teste
if: ${{ github.event.inputs.number != '' }}
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: ${{ github.event.inputs.email_test }}
run: apyb-bot github:new-discussion-notification --id ${{ github.event.inputs.number }}

0 comments on commit 2472ec2

Please sign in to comment.