Skip to content

Commit

Permalink
Make main default branch for CI action (#569)
Browse files Browse the repository at this point in the history
Following the migration in iterative/studio#10873
  • Loading branch information
amritghimire authored Nov 6, 2024
1 parent 4f08133 commit 69f45eb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/tests-studio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,11 @@ jobs:
STUDIO_READ_ACCESS_TOKEN: ${{ secrets.ITERATIVE_STUDIO_READ_ACCESS_TOKEN }}
run: |
echo "DataChain branch: $BRANCH"
if [[ "$BRANCH" == "main" ]]
then
STUDIO_BRANCH=develop
elif git ls-remote --heads https://"$STUDIO_READ_ACCESS_TOKEN"@github.com/iterative/studio.git "$BRANCH" | grep -F "$BRANCH" 2>&1>/dev/null
if git ls-remote --heads https://"$STUDIO_READ_ACCESS_TOKEN"@github.com/iterative/studio.git "$BRANCH" | grep -F "$BRANCH" 2>&1>/dev/null
then
STUDIO_BRANCH="$BRANCH"
else
STUDIO_BRANCH=develop
STUDIO_BRANCH=main
fi
echo "STUDIO_BRANCH=$STUDIO_BRANCH" >> $GITHUB_ENV
echo "Studio branch: $STUDIO_BRANCH"
Expand Down

0 comments on commit 69f45eb

Please sign in to comment.