forked from ish-app/ish
-
Notifications
You must be signed in to change notification settings - Fork 11
37 lines (36 loc) · 1.26 KB
/
update-alpine-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
name: "Update Repo"
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
update:
if: github.repository == 'ish-app/ish'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup dependencies
run: |
sudo apt-get install rclone
mkdir -p ~/.config/rclone
echo "$RCLONE_CONFIG" > ~/.config/rclone/rclone.conf
env:
RCLONE_CONFIG: ${{ secrets.RCLONE_CONFIG }}
- name: Update
run: |
deps/aports/sync-archive.sh v3.12 main/x86
deps/aports/sync-archive.sh v3.12 community/x86
deps/aports/sync-archive.sh v3.14 main/x86 deps/aports/main/x86/index.txt
deps/aports/sync-archive.sh v3.14 community/x86 deps/aports/community/x86/index.txt
- name: Commit
id: commit
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git add deps/aports/{main,community}/x86/index.txt
git commit -m "Update Alpine repositories"
# TODO add a summary of changes in the commit description
continue-on-error: true
- name: Push
if: ${{ steps.commit.outcome == 'success' }}
run: git push