File tree 1 file changed +21
-17
lines changed
1 file changed +21
-17
lines changed Original file line number Diff line number Diff line change 1
1
name : Update docs/docs/index.md
2
- on : push
3
- permissions :
4
- pull-requests : write
5
- contents : write
6
- repository-projects : write
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
7
8
8
jobs :
9
9
update-docs :
10
10
runs-on : ubuntu-latest
11
+
11
12
steps :
12
- - uses : actions/checkout@v2
13
- - name : Update docs/docs/index.md
14
- run : |
15
- echo "Generating docs/docs/index.md..."
16
- cat README.md > docs/docs/index.md
17
- - name : Commit and push changes
18
- run : |
19
- git config --global user.name "coderatul"
20
- git config --global user.email "[email protected] "
21
- git add docs/docs/index.md
13
+ - name : Checkout repository
14
+ uses : actions/checkout@v2
15
+
16
+ - name : Generate docs/docs/index.md
17
+ run : |
18
+ echo "Generating docs/docs/index.md..."
19
+ cat README.md > docs/docs/index.md
20
+
21
+ - name : Commit changes
22
+ run : |
23
+ git add docs/docs/index.md
24
+ if [ -n "$(git status --porcelain)" ]; then
22
25
git commit -m "Update docs/docs/index.md"
23
26
git push
24
-
25
-
27
+ else
28
+ echo "No changes to commit"
29
+ fi
You can’t perform that action at this time.
0 commit comments