update creating branch section

Signed-off-by: GuillaumeFalourd <guillaume.falourd@zup.com.br>
This commit is contained in:
GuillaumeFalourd 2022-01-06 23:50:46 -03:00
parent e7a4b74c2a
commit c80328cf27

View file

@ -138,11 +138,8 @@ runs:
git remote set-url origin $REMOTE_URL
git fetch origin
if [ -z "${{ inputs.target_dir }}" ]; then
git add ${{ inputs.source_files }}
else
git add ${{ inputs.target_dir }}/${{ inputs.source_files }}
fi
git add ${{ inputs.files }}
# Won't commit if no changes were made
git diff-index --quiet HEAD || git commit --message "${{ inputs.commit_message }}"
git status