update creating branch section
Signed-off-by: GuillaumeFalourd <guillaume.falourd@zup.com.br>
This commit is contained in:
parent
e7a4b74c2a
commit
c80328cf27
1 changed files with 3 additions and 6 deletions
|
@ -134,15 +134,12 @@ runs:
|
||||||
|
|
||||||
cd "$CLONE_DIRECTORY"
|
cd "$CLONE_DIRECTORY"
|
||||||
|
|
||||||
REMOTE_URL=https://$DESTINATION_OWNER:${{ inputs.access_token }}@github.com/$DESTINATION_OWNER/$DESTINATION_REPOSITORY
|
REMOTE_URL=https://$DESTINATION_OWNER:${{ inputs.access_token }}@github.com/$DESTINATION_OWNER/$DESTINATION_REPOSITORY
|
||||||
git remote set-url origin $REMOTE_URL
|
git remote set-url origin $REMOTE_URL
|
||||||
git fetch origin
|
git fetch origin
|
||||||
|
|
||||||
if [ -z "${{ inputs.target_dir }}" ]; then
|
git add ${{ inputs.files }}
|
||||||
git add ${{ inputs.source_files }}
|
|
||||||
else
|
|
||||||
git add ${{ inputs.target_dir }}/${{ inputs.source_files }}
|
|
||||||
fi
|
|
||||||
# Won't commit if no changes were made
|
# Won't commit if no changes were made
|
||||||
git diff-index --quiet HEAD || git commit --message "${{ inputs.commit_message }}"
|
git diff-index --quiet HEAD || git commit --message "${{ inputs.commit_message }}"
|
||||||
git status
|
git status
|
||||||
|
|
Loading…
Add table
Reference in a new issue