Skip to content

Commit

Permalink
Commit comparison is faulty (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
amousavigourabi authored Aug 17, 2023
2 parents 8b18b6e + 68f4956 commit 4304463
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ runs:
run: |
sudo ${{ github.action_path }}/setup-branch.sh ${{ inputs.branch }}
git stage -A ${{ inputs.files }}
${{ github.action_path }}/commit.sh "${{ inputs.message }}" ${{ inputs.allow-empty }}
sudo ${{ github.action_path }}/commit.sh "${{ inputs.message }}" ${{ inputs.allow-empty }}
sudo ${{ github.action_path }}/push.sh ${{ inputs.branch }}
shell: bash
2 changes: 1 addition & 1 deletion commit.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
if [ "$2" == "true" ] || ! git diff --cached --quiet --exit-code
if [ "$2" = "true" ] || ! git diff --cached --quiet --exit-code
then
git commit --allow-empty -m "$1"
fi
Expand Down

0 comments on commit 4304463

Please sign in to comment.