Skip to content

Commit

Permalink
Use proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Kostya Bats committed Sep 6, 2024
1 parent 6135029 commit 07eb681
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 => '<img src="' + i.replace("https://i.ibb.co/", "https://kbats.ru/imgbb/") + '" width="400" />')
.join(' ');
github.rest.issues.createComment({
issue_number: context.issue.number,
Expand Down

0 comments on commit 07eb681

Please sign in to comment.