Merge pull request #87 from mrchnk/master #72
This file contains 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
# Run scripts by release | |
name: Release | |
on: | |
push: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
release: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Get python's version | |
run: python2 --version | |
- name: Run release | |
run: cd $HOME/work/kodi/kodi/addons/ && rm addons.xml.md5 && python2 postprocess.py && python2 release.py | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Apply release | |
- name: Send result to email | |
if: always() | |
uses: dawidd6/action-send-mail@v2 | |
with: | |
server_address: smtp.gmail.com | |
server_port: 465 | |
# user credentials | |
username: ${{secrets.EMAIL_USERNAME}} | |
password: ${{secrets.EMAIL_PASSWORD}} | |
# email subject | |
subject: ${{github.job}} job of ${{github.repository}} branch ${{github.ref}} has ${{job.status}} | |
# email body as text | |
body: ${{github.job}} job in worflow ${{github.workflow}} of ${{github.repository}} branch ${{github.ref}} has ${{job.status}} | |
# comma-separated string, send email to | |
to: [email protected], [email protected] | |
# from email name | |
from: Github Actions | |