-
Notifications
You must be signed in to change notification settings - Fork 5
25 lines (23 loc) · 869 Bytes
/
fetch.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
name: Fetch .apk
on:
workflow_dispatch:
workflow_call:
schedule:
- cron: "0 */5 * * *"
jobs:
fetch:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Fetch .apk file
run: wget https://teslacoilapps.com/tesladirect/download.pl?packageName=com.teslacoilsw.launcher -O $GITHUB_WORKSPACE/system/app/NovaLauncher/NovaLauncher.apk
- name: Push changes with Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
git init
git add -A
git commit --allow-empty -am "Fetch/Update NovaLauncher.apk"
git push -u origin $GITHUB_REF_NAME && echo Done! && exit 0
if: github.event_name != 'pull_request'