From 07eb681b34cbe56f563a244dc8a384383157ea90 Mon Sep 17 00:00:00 2001 From: Kostya Bats Date: Fri, 6 Sep 2024 12:35:25 +0300 Subject: [PATCH] Use proxy --- .github/workflows/test.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ddc08407..03e80b18 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -64,23 +64,16 @@ jobs: run: | ls *.png | \ xargs -i curl -s -P1 --location --request POST "https://api.imgbb.com/1/upload?expiration=604800&key=$IMGBB_API_TOKEN" --form "image=@{}" | \ - tee hh.txt | jq -r '.data.image.url' | tee gg.txt - cat hh.txt - while read -r url; do - echo $url - curl -s -D test.txt -o test.png "$url" - cat test.txt - done < gg.txt - cat gg.txt | paste -sd "," - | awk '{print "pr_playwright_images="$0 }' | tee "$GITHUB_OUTPUT" + jq -r '.data.image.url' | paste -sd "," - | awk '{print "pr_playwright_images="$0 }' | tee "$GITHUB_OUTPUT" - name: PR playwright - comment uses: actions/github-script@v7 if: github.event.pull_request.number != '' && hashFiles('./src/frontend/tests/playwright-report') != '' with: script: | const images_grid = '${{steps.pr_playwright-upload.outputs.pr_playwright_images}}' - .split(',').concat('https://arc.live.kbats.ru/contests/wf47_finals/teams/team_photos/team-47133.jpg') - .map(i => '![image](' + i + ')').join(' '); - console.log(images_grid); + .split(',') + .map(i => '') + .join(' '); github.rest.issues.createComment({ issue_number: context.issue.number,