diff --git a/.gitea/workflows/push-registry.yml b/.gitea/workflows/push-registry.yml index d119b37..77223d6 100644 --- a/.gitea/workflows/push-registry.yml +++ b/.gitea/workflows/push-registry.yml @@ -44,15 +44,16 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - - name: Send mail - uses: dawidd6/action-send-mail@v3 - with: - server_address: mail.log101.dev - server_port: 465 - secure: true - username: ${{secrets.MAIL_USERNAME}} - password: ${{secrets.MAIL_PASSWORD}} - subject: Github Actions job result - to: ffrknerdm@gmail.com - from: gitea@log101.dev - body: Build job of ${{github.repository}} completed successfully! + - name: Send mail + uses: dawidd6/action-send-mail@v3 + if: $ {{ always() }} + with: + server_address: mail.log101.dev + server_port: 465 + secure: true + username: ${{secrets.MAIL_USERNAME}} + password: ${{secrets.MAIL_PASSWORD}} + subject: Github Actions job result + to: ffrknerdm@gmail.com + from: gitea@log101.dev + body: Build job of ${{github.repository}} completed with status ${{ jobs.build-and-push-image.status }}!