Fix gitea ansible job

This commit is contained in:
Dave Gallant
2023-12-29 00:00:06 -05:00
parent 4d5ddf6d44
commit c545a5a8c8
2 changed files with 6 additions and 14 deletions

View File

@@ -191,22 +191,18 @@ jobs:
options: |
--inventory inventory
--limit ${{ matrix.host }}
send-failure-notification:
needs: run-ansible-playbook
runs-on: ubuntu-latest
if: always() && failure()
steps:
- name: Send failure notification
uses: dawidd6/action-send-mail@v3
if: always() && failure()
with:
server_address: smtp.gmail.com
server_port: 465
secure: true
username: myuser
password: ${{ secrets.MAIL_PASSWORD }}
subject: gitea job ${{github.repository}} failed!
subject: ansible runbook '${{ matrix.host }}' failed
to: me@davegallant.ca
from: Gitea
from: RFD Notify
body: |
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}
```