-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 876 Bytes
/
update.yml
File metadata and controls
34 lines (28 loc) · 876 Bytes
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
name: update
on:
schedule:
- cron: '0 0 * * *'
permissions:
contents: write
jobs:
update:
name: update
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Run update
run: bash update.sh
- name: show git diff
run: git diff HEAD
- name: Exit early if no meaningful changes
run: |
git diff --exit-code -I'"version":' -I'"log_list_timestamp":' -I'kCTExpirationTime' -- ':(exclude)*.sig' && exit 0 || echo "Changes found."
git add .
DATE=$(date -u "+%Y-%m-%d %H:%M:%S UTC")
git commit -m "Automated update: ${DATE}"
git push origin HEAD:main