TestWorkflow #91
This file contains hidden or 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: 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: Asterisk Development Team <[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":"README.md"}]' | |
| - 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: Asterisk Development Team <[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: '[{"path":"README.md"}]' | |
| - 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 | |