From 938d89224e9938d063647a424d8992e4e0e00ef3 Mon Sep 17 00:00:00 2001 From: Siarhei Zhachek <106345484+SiarheiZhachek@users.noreply.github.com> Date: Sun, 13 Oct 2024 03:53:55 +0300 Subject: [PATCH] Update run_tests.yml --- .github/workflows/run_tests.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 0b99016..f70ccd5 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -27,9 +27,20 @@ jobs: -H "Authorization: Bearer ${{ secrets.TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/Train-lab-intern/aqa_python/actions/artifacts/$ARTIFACT_ID/zip - -o artifacts.zip - - + -o artifacts.zip + && + REPORT_ID=$(curl -L + -H "Accept: application/vnd.github+json" + -H "X-GitHub-Api-Version: 2022-11-28" + "https://api.github.com/repos/Train-lab-intern/aqa_python/actions/artifacts?name=github-pages" + | python -c "import sys, json; print(json.load(sys.stdin)['artifacts'][0]['id']);") + && + curl -L + -H "Accept: application/vnd.github+json" + -H "Authorization: Bearer ${{ secrets.TOKEN }}" + -H "X-GitHub-Api-Version: 2022-11-28" + https://api.github.com/repos/Train-lab-intern/aqa_python/actions/artifacts/$REPORT_ID/zip + -o pages.zip test: