Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirianni committed Jan 22, 2024
1 parent 237fe44 commit d23dbd0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ write_back() {
return
fi

git clone https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git
# Clone the repo on the current branch
# and use depth 1 to avoid cloning the entire history.
git clone \
--depth 1 \
--branch "$BRANCH_NAME" \
https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git

mkdir -p "$GITHUB_REPOSITORY/$OUTPUT_DIR"

Expand All @@ -102,7 +107,7 @@ write_back() {
git config --global user.email "bindplane-op-action"
git config --global user.name "bindplane-op-action"
git commit -m "BindPlane OP Action: Update OTEL Configs"
git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git" "HEAD:$OUTPUT_BRANCH"
git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git"
}

install_bindplane_cli
Expand Down

0 comments on commit d23dbd0

Please sign in to comment.