Skip to content

Commit 950ba8c

Browse files
committed
Upload Files
1 parent 227548b commit 950ba8c

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/main.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Star
2+
3+
on:
4+
5+
push:
6+
branches:
7+
- main
8+
9+
schedule:
10+
- cron: "* * * * *"
11+
12+
jobs:
13+
auto_commit:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
with:
18+
persist-credentials: false
19+
fetch-depth: 0
20+
21+
- name: Modify last update
22+
run: |
23+
d='DATE '`date '+%Y-%m-%d %H:%M:%S'`
24+
echo $d > LOG
25+
26+
- name: Commit changes
27+
run: |
28+
git config --local user.email "ischhfd83@rambler.ru"
29+
git config --local user.name "${{ github.repository_owner }}"
30+
git add -A
31+
32+
arr[0]="Update"
33+
arr[1]="Update"
34+
arr[2]="Update"
35+
arr[3]="Update"
36+
arr[4]="Update"
37+
arr[5]="Update"
38+
arr[6]="Update"
39+
arr[7]="Update"
40+
arr[8]="Update"
41+
arr[9]="Update"
42+
43+
rand=$[$RANDOM % ${#arr[@]}]
44+
45+
git commit -m "${arr[$rand]}"
46+
47+
- name: GitHub Push
48+
uses: ad-m/github-push-action@master
49+
with:
50+
force: true
51+
directory: "."
52+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)