From a049fdc5115f2f3422344dc55034917665a27493 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Tue, 19 Sep 2023 01:50:20 +0530 Subject: [PATCH] debug: use diffierent FORGEJO_USER1_ACCESS_TOKEN_FILE_PATH based on env --- integration/lib.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/integration/lib.sh b/integration/lib.sh index 4f98ae6..cd0f17a 100755 --- a/integration/lib.sh +++ b/integration/lib.sh @@ -15,8 +15,11 @@ if is_ci then FORGEJO_URL="http://forgejo:3000" FORGEJO_SSH_URL="ssh://git@forgejo:22" + mkdir /woodpecker/src/git.batsense.net/realaravinth/forgejo-notifications-core/tmp/ + FORGEJO_USER1_ACCESS_TOKEN_FILE_PATH=/woodpecker/src/git.batsense.net/realaravinth/forgejo-notifications-core/tmp/user1-accesstoken.json else FORGEJO_URL="http://localhost:3000" + FORGEJO_USER1_ACCESS_TOKEN_FILE_PATH=$(realpath tmp/user1-accesstoken.json) FORGEJO_SSH_URL="ssh://git@localhost:22" fi @@ -29,7 +32,6 @@ readonly FORGEJO_USER1_PASSWORD=supercomplicatedpassword readonly FORGEJO_USER1_EMAIL="$FORGEJO_USER1_USERNAME@example.org" readonly FORGEJO_USER1_SUPPORT_REPO="support" readonly FORGEJO_USER1_ACCESS_TOKEN_NAME="coreaccesstoken" -readonly FORGEJO_USER1_ACCESS_TOKEN_FILE_PATH=$(realpath tmp/user1-accesstoken.json) rm $FORGEJO_USER1_ACCESS_TOKEN_FILE_PATH || true readonly FORGEJO_TESTUSER_USERNAME=test_user