TestWorkflow #88
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 | |
| 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 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":"README.md"}]' | |