Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ReToCode committed Jul 10, 2024
1 parent 3140ad9 commit 47f724a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openshift/release/update-to-head.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ git push -f openshift ${REPO_BRANCH}
git checkout ${REPO_BRANCH} -B ${REPO_BRANCH_CI}
date > ci
git add ci
git commit -m ":robot: Triggering CI on branch '${REPO_BRANCH}' after synching to upstream/main"
git commit -m ":robot: Triggering CI on branch '${REPO_BRANCH}' after syncing to upstream/main"
git push -f openshift ${REPO_BRANCH_CI}

if hash hub 2>/dev/null; then
# Test if there is already a sync PR in
message=":robot: Triggering CI on branch '${REPO_BRANCH}' after synching to upstream/main"
COUNT=$(hub api -H "Accept: application/vnd.github.v3+json" repos/${REPO_OWNER_NAME}/${REPO_NAME}/pulls --flat \
message=":robot: Triggering CI on branch '${REPO_BRANCH}' after syncing to upstream/main"
COUNT=$(hub api -H "Accept: application/vnd.github.v3+json" repos/${REPO_OWNER_NAME}/"${REPO_NAME}"/pulls --flat \
| grep -c "${message}") || true
if [ "$COUNT" = "0" ]; then
hub pull-request -m "${message}" -l "kind/sync-fork-to-upstream" -b ${REPO_OWNER_NAME}/${REPO_NAME}:${REPO_BRANCH} -h ${REPO_OWNER_NAME}/${REPO_NAME}:${REPO_BRANCH_CI}
hub pull-request -m "${message}" -l "kind/sync-fork-to-upstream" -b ${REPO_OWNER_NAME}/"${REPO_NAME}":${REPO_BRANCH} -h ${REPO_OWNER_NAME}/"${REPO_NAME}":${REPO_BRANCH_CI}
fi
else
echo "hub (https://github.com/github/hub) is not installed, so you'll need to create a PR manually."
Expand Down

0 comments on commit 47f724a

Please sign in to comment.