Skip to content

Commit a4fb8cc

Browse files
committed
fix workflow, fix cookie length print, fix Cookies saving
1 parent 98d61bc commit a4fb8cc

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ jobs:
3737
3838
# Check if tag exists in the fetched history
3939
if git rev-parse "refs/tags/$TAG_NAME" >/dev/null 2>&1; then
40-
echo "Tag $TAG_NAME exists. Checking out specific commit..."
41-
git checkout "refs/tags/$TAG_NAME"
40+
echo "Tag $TAG_NAME exists"
4241
else
4342
echo "Tag $TAG_NAME does not exist. creating it on current HEAD..."
4443
git tag "$TAG_NAME"

pkg/provider/browser/browser.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func (cl *Client) Authenticate(loginDetails *creds.LoginDetails) (string, error)
124124
if loginDetails.CookiesJson == "" {
125125
logger.Info("could not retrieve cookies")
126126
} else {
127-
logger.Info("Cookie payload bytes: ", len(loginDetails.CookiesJson))
127+
logger.Info("cookie json string length: ", len(loginDetails.CookiesJson))
128128
}
129129

130130
var cookies []playwright.OptionalCookie
@@ -143,7 +143,7 @@ func (cl *Client) Authenticate(loginDetails *creds.LoginDetails) (string, error)
143143

144144
defer func() {
145145
logger.Info("saving storage state")
146-
cookies, err := context.Cookies()
146+
cookies, err := context.Cookies(loginDetails.URL)
147147
if err != nil {
148148
logger.Info("could not get cookies: %v", err)
149149
}

0 commit comments

Comments
 (0)