ci: Move git config ... to run-in-docker-action

This commit is contained in:
Hennadii Stepanov
2023-08-23 21:18:53 +01:00
parent 4d7fe60905
commit 317a4c48f0
2 changed files with 4 additions and 12 deletions

View File

@@ -41,5 +41,8 @@ runs:
$(echo '${{ toJSON(env) }}' | jq -r 'keys[] | "--env \(.) "') \
--volume ${{ github.workspace }}:${{ github.workspace }} \
--workdir ${{ github.workspace }} \
${{ inputs.tag }} bash -c "${{ inputs.command }}"
${{ inputs.tag }} bash -c "
git config --global --add safe.directory ${{ github.workspace }}
${{ inputs.command }}
"
shell: bash