Отправка электронной почты с помощью действий на Github

#github #yaml #smtp

Вопрос:

Я изучаю действия на Github и хочу отправить электронное письмо с действиями на Github. но github выдает мне следующую ошибку.

 Run dawidd6/action-send-mail@v3.6.0
Error: Invalid login: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1amp;scc=1amp;plt=AKgnsbt
534-5.7.14 q937LSp00ryw6TWRxw0-nnKJEijBq83UwreLR6Bu4wr_MwGSeBWNF6rFleIEyw6a9Z0Le
534-5.7.14 b7A1GlsFzIiog5p_U3BAcRhFo5EWeHW25UREP_QJ2oZPf5ZKHynU-D6iScC6bopH>
534-5.7.14 Please log in via your web browser and then try again.
534-5.7.14  Learn more at
534 5.7.14  https://support.google.com/mail/answer/78754 fw21sm11223135pjb.25 - gsmtp
 

изображение ошибки

Я следую этой статье, чтобы отправить электронное письмо с действиями на Github.

мой .yml код выглядит так.

 name: GitHub Actions Demo
on: [push]
jobs:
  Explore-GitHub-Actions:
    runs-on: ubuntu-latest
    steps:
      - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
      - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
      - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
      - name: Check out repository code
        uses: actions/checkout@v2
      - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
      - run: echo "🖥️ The workflow is now ready to test your code on the runner."
      - name: List files in the repository
        run: |
          ls ${{ github.workspace }}
      - run: echo "🍏 This job's status is ${{ job.status }}."

  sending-email:
    runs-on: ubuntu-latest
    steps:
      - name: Check out repository code
        uses: actions/checkout@v2
      - name: Send email
        uses: dawidd6/action-send-mail@v3.6.0
        with:
          server_address: smtp.gmail.com
          server_port: 465
          username: ${{secrets.GMAIL_USERNAME}}
          password: ${{secrets.GMAIL_PASSWORD}}
          subject: Message from github actions.
          to: dulench.deori564@gmail.com
          from: deepak deori
          secure: true
          body: workflow for ${{github.repository}} completed successfully!
 

Во второй работе я указал, что должен отправлять электронную почту.