Skip to content

Commit

Permalink
try with fils token
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Maj committed Nov 27, 2024
1 parent 7dff067 commit 619a291
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
IMPORT_URL="https://raw.githubusercontent.com/slackapi/deno-slack-sdk/refs/heads/${GIT_BRANCH}/src/";
echo "Import URL: ${IMPORT_URL}";
echo "Length of access token:";
echo $CCHEN_CIRCLECI_PERSONAL_TOKEN | wc -m;
echo $FIL_CIRCLECI_PERSONAL_TOKEN | wc -m;
# https://app.circleci.com/settings/organization/github/slackapi/contexts
TEST_PAYLOAD=$(curl --location --request POST 'https://circleci.com/api/v2/project/gh/slackapi/platform-devxp-test/pipeline' \
--header 'Content-Type: application/json' \
-u "${CCHEN_CIRCLECI_PERSONAL_TOKEN}:" \
-u "${FIL_CIRCLECI_PERSONAL_TOKEN}:" \
--data "{\"branch\":\"main\",\"parameters\":{\"deno_sdk_import_url\":\"${IMPORT_URL}\"}}")
echo $TEST_PAYLOAD;
TEST_JOB_WORKFLOW_ID=$(echo $TEST_PAYLOAD | jq '.id');
Expand All @@ -46,7 +46,7 @@ jobs:
do
sleep 30s
echo "Polling test job ${TEST_JOB_WORKFLOW_ID}..."
E2E_RESULT=$(curl --location -sS --request GET "https://circleci.com/api/v2/pipeline/$TEST_JOB_WORKFLOW_ID/workflow" --header "Circle-Token: $CCHEN_CIRCLECI_PERSONAL_TOKEN")
E2E_RESULT=$(curl --location -sS --request GET "https://circleci.com/api/v2/pipeline/$TEST_JOB_WORKFLOW_ID/workflow" --header "Circle-Token: $FIL_CIRCLECI_PERSONAL_TOKEN")
E2E_STATUS=$(echo $E2E_RESULT | jq --raw-output '.items[0].status')
echo "Status is now: $E2E_STATUS"
done
Expand Down

0 comments on commit 619a291

Please sign in to comment.