-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (37 loc) · 1.03 KB
/
main.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
name: generate Arch Linux PKGBUILD files for kodi pvr addons
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
push:
branches:
- master
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: set variables
run: |
echo "UPDATE_TIME=$(date +%Y-%m-%d)" >> $GITHUB_ENV
- name: prepare scripts
uses: actions/checkout@v2
with:
ref: master
- name: generate PKGBUILD
run: |
bash gen-pvr-pkgbuild.sh
- name: add license
run: |
curl -sLo release/LICENSE https://www.gnu.org/licenses/gpl-3.0.txt
- name: add workflow
run: |
mkdir -p release/.github/workflows
cp workflow.yml release/.github/workflows/main.yml
- name: push release
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: release
FOLDER: release
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
MESSAGE: auto update at ${{ env.UPDATE_TIME }}