-
Notifications
You must be signed in to change notification settings - Fork 14
38 lines (30 loc) · 930 Bytes
/
sync_inet.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
name: Synchronize some directories with the Internet
on:
schedule:
# Trigger every Sunday at 5:00
- cron: '0 5 * * 0'
jobs:
sync-inet:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
pip install dnspython pycryptodomex
- uses: actions/checkout@v4
- name: Update GPG keys
run: make -C gpg sync-inet
- name: Update DNSSEC records
run: make -C python/network/dnssec sync-inet
- name: Show the changes
run: |
git add -A
git diff --cached
- name: Commit the changes
run: |
if git status --short | grep '^' ; then
git add -A
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions Updater"
git commit -m "Update repository $(date --utc +"%Y-%m-%d %H:%M:%S")"
git push origin "${GITHUB_REF##*/}"
fi