Update Repo #1440
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Update Repo" | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * 6" | |
jobs: | |
update: | |
if: github.repository == 'ish-app/ish' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup dependencies | |
run: | | |
curl https://rclone.org/install.sh | sudo bash | |
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.14 main/x86 deps/aports | |
deps/aports/sync-archive.sh v3.14 community/x86 deps/aports | |
deps/aports/sync-archive.sh v3.17 main/x86 deps/aports | |
deps/aports/sync-archive.sh v3.17 community/x86 deps/aports | |
deps/aports/sync-archive.sh v3.18 main/x86 deps/aports | |
deps/aports/sync-archive.sh v3.18 community/x86 deps/aports | |
deps/aports/sync-archive.sh v3.19 main/x86 deps/aports | |
deps/aports/sync-archive.sh v3.19 community/x86 deps/aports | |
- 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 | |
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 |