diff --git a/action.yml b/action.yml index 727da61..40224e5 100644 --- a/action.yml +++ b/action.yml @@ -44,17 +44,22 @@ runs: - name: Commit and push changes working-directory: ${{ inputs.destination }} run: | + echo "git config" git config user.name "${{ inputs.git_user_name }}" git config user.email "${{ inputs.git_user_email }}" + echo "git add" git add -A + echo "git diff" if git diff --cached --quiet; then echo "No changes to commit" exit 0 fi + echo "git commit" git commit -m "${{ inputs.commit_message }}" + echo "git push" git push origin "HEAD:${{ inputs.branch }}" shell: bash