built.db/.github/workflows/sync.yml

35 lines
827 B
YAML
Raw Permalink Normal View History

2022-06-05 06:47:35 +00:00
name: Sync
on:
schedule:
2022-06-08 13:34:00 +00:00
- cron: '*/30 * * * *'
2022-06-05 06:47:35 +00:00
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Download and unpack
run: |
rm -rf *-*
2022-06-15 20:49:54 +00:00
wget -qq https://built.medzik.xyz/x86_64/built.files -O - | tar xJf -
2022-06-05 06:47:35 +00:00
- name: Commit changes
run: |
git config --global user.name "MedzikUserBot"
git config --global user.email "rm99iv9s@duck.com"
git add -A
git diff-index --quiet HEAD || git commit -m "$(date)"
git pull --rebase
- name: Push changes
uses: ad-m/github-push-action@b007e7b818e33b04afd056e4c4b57ba917145d7a
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: 'main'