We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42e918b commit 91e4d17Copy full SHA for 91e4d17
.github/workflows/ci.yaml
@@ -70,9 +70,9 @@ jobs:
70
DEFAULT_BRANCH=$(curl -H "Authorization: token $GITHUB_TOKEN" \
71
"https://api.github.com/repos/$GITHUB_REPOSITORY" | jq -r '.default_branch')
72
73
- CUR_SHA=$(git log --pretty=tformat:"%H" -n1 .)
74
- LAST_SHA=$(git log --pretty=tformat:"%H" -n2 | tail -n1)
75
git fetch
+ CUR_SHA=$(git log --pretty=tformat:"%H" -n1 . | tail -n1)
+ LAST_SHA=$(git log --pretty=tformat:"%H" -n2 . | tail -n1)
76
77
echo "Default branch is $DEFAULT_BRANCH"
78
echo "Current SHA is $CUR_SHA"
0 commit comments