Skip to content

Commit

Permalink
Do not commit doc updates
Browse files Browse the repository at this point in the history
This is really anoying when working on a refactor, besides that doc updates should go with the commit that introduced the changes

Signed-off-by: Marco Franssen <marco.franssen@philips.com>
  • Loading branch information
marcofranssen committed Nov 30, 2021
1 parent 78055a9 commit 587690e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/action-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,16 @@ jobs:
tocLevel: 3
actionFile: action.yaml

- name: Update readme in the repository
if: github.event_name != 'pull_request'
uses: stefanzweifel/git-auto-commit-action@v4.12.0
with:
commit_message: ":memo: Update Readme"
file_pattern: README.md
- name: Verify docs are updated
run: |
if [ "$(git status --porcelain)" != "" ] ; then
git diff
exit 1
fi
# - name: Update readme in the repository
# if: github.event_name != 'pull_request'
# uses: stefanzweifel/git-auto-commit-action@v4.12.0
# with:
# commit_message: ":memo: Update Readme"
# file_pattern: README.md
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

- name: Lint
run: |
result="$(make lint)"
result="$(make lint)"
echo "$result"
[ -n "$(echo "$result" | grep 'diff -u')" ] && exit 1 || exit 0
Expand Down

0 comments on commit 587690e

Please sign in to comment.