Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use git add -- . instead of git commit -a #240

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/cd_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ jobs:
done
fi

git commit -am "Release ${REF} - Changelog"
git add -- .
git commit -m "Release ${REF} - Changelog"

if [ -z "${{ inputs.tag_message_file }}" ] || [ ! -f "${{ inputs.tag_message_file }}" ]; then
TAG_MSG_FILE=.tmp_tag-msg_${{ github.run_id }}_${{ github.run_number }}_${{ github.run_attempt }}.txt
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci_automerge_prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ jobs:
git config --global user.name "${{ inputs.git_username }}"
git config --global user.email "${{ inputs.git_email }}"

git commit -am "Auto-merge extra changes."
git add -- .
git commit -m "Auto-merge extra changes."

- name: Push changes to '${{ github.event.pull_request.head.ref }}'
if: inputs.perform_changes
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci_update_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ jobs:
if: inputs.update_pre-commit
run: |
if [ "${UPDATED_PRE_COMMIT_HOOKS}" == "true" ]; then
git commit -am "Update \`pre-commit\` hooks"
git add -- .
git commit -m "Update \`pre-commit\` hooks"
fi

- name: Set PR body
Expand Down
Loading