Skip to content

Commit

Permalink
Revert "Resolved bug with already existing remote (#228)"
Browse files Browse the repository at this point in the history
This reverts commit 3b3a421.
  • Loading branch information
jackton1 committed Oct 26, 2021
1 parent 3b3a421 commit 65eceb1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ fi

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=$?

if [[ $exit_status -ne 0 ]]; then
git remote add temp_changed_files "https://${INPUT_TOKEN}@${SERVER_URL}/${GITHUB_REPOSITORY}"
fi
git remote add temp_changed_files "https://${INPUT_TOKEN}@${SERVER_URL}/${GITHUB_REPOSITORY}"

echo "Getting HEAD info..."

Expand Down

0 comments on commit 65eceb1

Please sign in to comment.