Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Achazwl authored Oct 1, 2021
1 parent 5d4182c commit 2b5263a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ jobs:
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git add .
if [[ git status --porcelain ]]; then
git commit -m "update docs"
changes=`git status --porcelain`
if [[ -z ${changes} ]]; then
echo "no changes"
else
echo "No changes"
git commit -m "update docs"
fi
- name: Push changes
Expand Down

0 comments on commit 2b5263a

Please sign in to comment.