-
Notifications
You must be signed in to change notification settings - Fork 48
45 lines (35 loc) · 1.28 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 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
# from email name
from: Github Actions