Skip to content

TestWorkflow

TestWorkflow #95

Workflow file for this run

name: TestWorkflow
run-name: "TestWorkflow"
on:
workflow_dispatch:
inputs:
branches:
description: "JSON array of branches: ['18','20'] (no spaces) or leave blank for all current branches."
required: false
type: string
env:
FROM_WF: "from workflow"
jobs:
Job1:
runs-on: ubuntu-latest
env:
FROM_JOB: "from job"
defaults:
run:
shell: bash
steps:
- name: Send email via MS
if: always()
uses: devellany/[email protected]
with:
host: smtp-mail.outlook.com
# Optional port (defaults to 465)
port: 587
account: ${{ secrets.ASTERISKTEAMSA_USERNAME }}
password: ${{ secrets.ASTERISKTEAMSA_PASSWORD }}
sender: Asterisk Development Team
from: [email protected]
to: [email protected]
subject: mail title.
body: your messages.
# Optional content type (defaults to text/plain)
contentType: text/plain
# Optional attachment files (JSON type. require property 'path')
attachments: '[{"path":"LICENSE"}]'
- name: Send Release Announcements
if: always()
uses: dawidd6/action-send-mail@v4
with:
server_address: smtp-mail.outlook.com
server_port: 587
secure: true
username: ${{ secrets.ASTERISKTEAMSA_USERNAME }}
password: ${{ secrets.ASTERISKTEAMSA_PASSWORD }}
subject: Test via MS2
to: [email protected]
from: Asterisk Development Team <[email protected]>
body: "test email"
reply_to: [email protected]
ignore_cert: true
convert_markdown: false
- name: Send email via GMAIL
if: always()
uses: devellany/[email protected]
with:
host: smtp.gmail.com
# Optional port (defaults to 465)
port: 465
account: ${{ secrets.ASTERISKTEAMSA_USERNAME }}
password: ${{ secrets.ASTERISKTEAMSA_TOKEN }}
sender: Asterisk Development Team
from: [email protected]
to: [email protected]
subject: test via gmail.
body: your messages.
# Optional content type (defaults to text/plain)
contentType: text/plain
# Optional attachment files (JSON type. require property 'path')
attachments: '[]'
- name: Send Release Announcements
if: always()
uses: dawidd6/action-send-mail@v4
with:
server_address: smtp.gmail.com
server_port: 465
secure: true
username: ${{ secrets.ASTERISKTEAMSA_USERNAME }}
password: ${{ secrets.ASTERISKTEAMSA_TOKEN }}
subject: Test via gmail
to: [email protected]
from: Asterisk Development Team <[email protected]>
body: "test email"
reply_to: [email protected]
ignore_cert: true
convert_markdown: false