Skip to content

Commit aea9d52

Browse files
committed
clean
1 parent 6651e03 commit aea9d52

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/ci.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ jobs:
5959
env:
6060
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6161
run: |
62-
DEFAULT_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')
62+
REPO_NAME=$(echo $GITHUB_REPOSITORY | sed 's/^.*\///')
63+
DEFAULT_BRANCH=$(curl -H "Authorization: token $GITHUB_TOKEN" \
64+
"https://api.github.com/repos/$GITHUB_REPOSITORY" | jq -r '.default_branch')
6365
6466
echo "Default branch = $DEFAULT_BRANCH"
6567
echo "Current SHA = ${{ github. sha }}"

0 commit comments

Comments
 (0)