Skip to content

Commit

Permalink
Use git add -- . instead of git commit -a (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
CasperWA committed Feb 14, 2024
1 parent 1b3e997 commit e324fcb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
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

0 comments on commit e324fcb

Please sign in to comment.