Skip to content

Commit af9f9ee

Browse files
committed
Merge branch 'master' of github.com:amogorkon/fuzzy
2 parents 41d8731 + 8dd7fa6 commit af9f9ee

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

.github/workflows/docsupdater.yaml

+21-17
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
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
77

88
jobs:
99
update-docs:
1010
runs-on: ubuntu-latest
11+
1112
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
2225
git commit -m "Update docs/docs/index.md"
2326
git push
24-
25-
27+
else
28+
echo "No changes to commit"
29+
fi

0 commit comments

Comments
 (0)