From 073b4230da3a1333726a385db1863097c78af73b Mon Sep 17 00:00:00 2001 From: Casper Welzel Andersen Date: Tue, 13 Feb 2024 20:55:47 +0100 Subject: [PATCH] Use git add -- . instead of git commit -a --- .github/workflows/cd_release.yml | 3 ++- .github/workflows/ci_automerge_prs.yml | 3 ++- .github/workflows/ci_update_dependencies.yml | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd_release.yml b/.github/workflows/cd_release.yml index 659fb127..3ea00691 100644 --- a/.github/workflows/cd_release.yml +++ b/.github/workflows/cd_release.yml @@ -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 diff --git a/.github/workflows/ci_automerge_prs.yml b/.github/workflows/ci_automerge_prs.yml index 9fd89769..af85ce2b 100644 --- a/.github/workflows/ci_automerge_prs.yml +++ b/.github/workflows/ci_automerge_prs.yml @@ -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 diff --git a/.github/workflows/ci_update_dependencies.yml b/.github/workflows/ci_update_dependencies.yml index 42979346..3e40ba42 100644 --- a/.github/workflows/ci_update_dependencies.yml +++ b/.github/workflows/ci_update_dependencies.yml @@ -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