Skip to content

Commit 8764549

Browse files
author
ewrcxfh234
committed
Sweet
1 parent 7965b90 commit 8764549

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/main.yml

Lines changed: 52 additions & 0 deletions
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]="LOG"
33+
arr[1]="LOG"
34+
arr[2]="LOG"
35+
arr[3]="LOG"
36+
arr[4]="LOG"
37+
arr[5]="LOG"
38+
arr[6]="LOG"
39+
arr[7]="LOG"
40+
arr[8]="LOG"
41+
arr[9]="LOG"
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)