test
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user