-
Notifications
You must be signed in to change notification settings - Fork 6
33 lines (32 loc) · 834 Bytes
/
autocommit.yml
File metadata and controls
33 lines (32 loc) · 834 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
name: Auto commit
on:
push:
branches:
- master
schedule:
- cron: "1 0 * * *"
jobs:
auto_commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
- name: Set date variable
run: |
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Write into CURRENT_DATE
run: |
echo $date > CURRENT_DATE
- name: Commit
run: |
git config --local user.email "${{ secrets.EMAIL }}"
git config --local user.name "Ostabo"
git add -A
git commit -m "commit of $date"
- name: Push
uses: ad-m/github-push-action@master
with:
directory: "."
github_token: ${{ secrets.GITHUB_TOKEN }}