-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (38 loc) · 913 Bytes
/
test.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
39
40
41
42
43
44
45
46
47
48
name: test images
on:
schedule:
- cron: '45 0 * * *'
workflow_dispatch:
jobs:
test_images:
runs-on: incus-1
steps:
- uses: actions/checkout@v2
- name: check path
run: |
pwd
- name: test images
run: |
chmod 777 test.sh
sudo bash test.sh
- name: Configure Git
run: |
git config --global user.name "daily-update"
git config --global user.email "tg@spiritlhl.top"
- name: Add files to Git staging area
run: |
ls
pwd
git add .
- name: Check Git status
run: |
git branch -a
git remote -v
git status
- name: Commit changes
run: |
git commit -m "Update files" | true
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}