-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (40 loc) · 1.21 KB
/
monthly-readme-update.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: Update README.md daily
on:
schedule:
- cron: '0 12 * * *'
workflow_dispatch:
jobs:
remove_readme:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Remove readme
run: |
rm README.md
echo $(ls)
- name: Commit and push changes
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git add *
git commit -m "Automatic Remove of README.md"
git push
echo "Just fail don't notify me"
update_readme:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Lua 5.4
run: sudo apt-get install lua5.4 curl grep -y
- name: Update README.md
run: lua update_readme.lua
- name: Commit and push changes
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git add README.md
git commit -m "Automatic Update of README.md"
git push
echo "Just fail don't notify me"