-
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 1007 Bytes
/
autodl.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
name: Auto download colour backup data
on:
schedule:
- cron: 0 10 15 1,7 *
workflow_dispatch:
jobs:
download:
name: Download colour data
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download colours data
shell: pwsh
run: .\fetch.ps1
- name: Config Git
run: |
git config --local user.name "Colour fetch"
git config --local user.email "enquiry@rk0cc.xyz"
- name: Check differences
id: difference
run: git diff --quiet
continue-on-error: true
- name: Add and commit
if: steps.difference.outcome == 'failure'
run: |
git add .
git commit -m "Update colour backup data"
- name: Push
if: steps.difference.outcome == 'failure'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main