Send email #14
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 email | |
on: | |
workflow_dispatch: | |
inputs: | |
name: | |
description: 'test user argument' | |
required: true | |
default: user | |
jobs: | |
send-email: | |
runs-on: ubuntu-latest | |
# env: | |
# USER: ${{github.event.inputs.name}} | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: verify input argument | |
run: | | |
echo "github.event.inputs.name: ${{github.event.inputs.name}}" | |
- name: Send email | |
uses: dawidd6/action-send-mail@v3 | |
with: | |
server_address: smtp.gmail.com | |
server_port: 465 | |
secure: true | |
username: ${{secrets.GMAIL_USERNAME}} | |
password: ${{secrets.GMAIL_PASSWORD}} | |
subject: Github Actions job result | |
to: [email protected] | |
from: OSORI | |
body: Hi ${{github.event.inputs.name}}, workflow for ${{github.repository}} completed successfully! |