Skip to content

Merge pull request #95 from mrchnk/master #78

Merge pull request #95 from mrchnk/master

Merge pull request #95 from mrchnk/master #78

Workflow file for this run

# 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