Revert "Resolved bug with already existing remote (#228)" (#229)

This reverts commit 3b3a421bef74ff46d22ee06194fad857bc9dfe1d.
This commit is contained in:
Tonye Jack 2021-10-26 09:41:27 -04:00 committed by GitHub
parent 3b3a421bef
commit 227fb65ec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,11 +17,7 @@ fi
SERVER_URL=$(echo "$GITHUB_SERVER_URL" | awk -F/ '{print $3}') SERVER_URL=$(echo "$GITHUB_SERVER_URL" | awk -F/ '{print $3}')
git ls-remote temp_changed_files 1>/dev/null 2>&1 && exit_status=$? || exit_status=$? git remote add temp_changed_files "https://${INPUT_TOKEN}@${SERVER_URL}/${GITHUB_REPOSITORY}"
if [[ $exit_status -ne 0 ]]; then
git remote add temp_changed_files "https://${INPUT_TOKEN}@${SERVER_URL}/${GITHUB_REPOSITORY}"
fi
echo "Getting HEAD info..." echo "Getting HEAD info..."