-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (61 loc) · 1.91 KB
/
update_repo.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Update Dev Build
on:
push:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
fdroid:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v4
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
- name: GPG user IDs
run: |
echo "fingerprint: ${{ steps.import_gpg.outputs.fingerprint }}"
echo "keyid: ${{ steps.import_gpg.outputs.keyid }}"
echo "name: ${{ steps.import_gpg.outputs.name }}"
echo "email: ${{ steps.import_gpg.outputs.email }}"
- name: Unlock Secrets
run: |
sudo apt-get install -y git-crypt
./scripts/decrypt_secrets.sh
env:
GITCRYPT_KEY: ${{ secrets.GITCRYPT_KEY }}
- name: Restore correct mtime
run: |
sudo apt install git-restore-mtime
git restore-mtime
- name: Install F-Droid server software
run: |
sudo add-apt-repository ppa:fdroid/fdroidserver
sudo apt-get update
sudo apt-get install fdroidserver
- name: Download fdroid-updator
uses: robinraju/release-downloader@v1.2
with:
repository: "GitJournal/fdroid-updator"
latest: true
filename: fdroid-updator_Linux_x86_64.tar.gz
out-file-path: ./
- name: Install fdroid-updator
run: tar -xf *.tar.gz --verbose
- name: Download apks
run: ./fdroid-updator
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update repo
run: make update
- name: Commit & Push changes
uses: actions-js/push@master
with:
branch: master
message: Auto Update Repo
github_token: ${{ secrets.GITHUB_TOKEN }}