Skip to content

Commit 2518ea1

Browse files
Update run-markdownsnippets to run on push
1 parent e78d6a8 commit 2518ea1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/run-markdownsnippets.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: MarkdownSnippets
22
on:
3-
workflow_dispatch:
3+
push:
4+
branches:
5+
- '**'
6+
tags-ignore:
7+
- '*.*'
48
jobs:
59
documentation:
610
name: Process documentation
@@ -20,8 +24,5 @@ jobs:
2024
run: |
2125
git config --local user.email "[email protected]"
2226
git config --local user.name "GitHub Action"
23-
git commit -m "MarkdownSnippets documentation changes" -a || echo "nothing to commit"
24-
remote="https://${GITHUB_ACTOR}:${{secrets.GITHUB_TOKEN}}@github.com/${GITHUB_REPOSITORY}.git"
25-
branch="${GITHUB_REF:11}"
26-
git push "${remote}" ${branch} || echo "nothing to push"
27-
shell: bash
27+
git add .
28+
git diff-index --quiet HEAD || git commit -m "docs: update markdown snippets [skip ci]" && git push

0 commit comments

Comments
 (0)