From 1ab1f2b52b730c2a4c788159c4a61cfb5b8ab204 Mon Sep 17 00:00:00 2001 From: Jakub Sliacan Date: Thu, 21 Dec 2023 12:39:37 +0100 Subject: [PATCH] Temp change --- .github/workflows/windows-e2e.yml | 42 +++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 10 deletions(-) diff --git a/.github/workflows/windows-e2e.yml b/.github/workflows/windows-e2e.yml index ff033a338d..a17462b1f5 100644 --- a/.github/workflows/windows-e2e.yml +++ b/.github/workflows/windows-e2e.yml @@ -14,7 +14,7 @@ jobs: matrix: windows-version: ['11'] windows-featurepack: ['23h2-ent'] - + steps: - name: Download GH context @@ -24,18 +24,40 @@ jobs: workflow: ${{ github.event.workflow_run.workflow_id }} name: gh_context - - name: Add status in PR checks + - name: Create e2e results + id: create-e2e-results run: | - set -Eeuo pipefail - OWNER_REPO=$(cat gh_context.json | jq -r '.repository') AFTER=$(cat gh_context.json | jq -r '.event.after') + echo "SHA_ID=${AFTER}" >> "$GITHUB_ENV" + cat > e2e-results.xml << EOF + + + Some title + + EOF + + - name: Upload Artifact + id: upload-e2e-results + uses: actions/upload-artifact@v3 + if: always() + with: + name: "results-${{env.SHA_ID}}" + path: | + **/e2e-results.xml - curl -L -v \ - -X POST \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${{ github.token }}" \ - https://api.github.com/repos/${OWNER_REPO}/statuses/${AFTER} \ - -d '{"state":"pending", "description":"Running e2e on Windows", "context":"win-ci-e2e"}' + + # - name: Add status in PR checks + # run: | + # set -Eeuo pipefail + # OWNER_REPO=$(cat gh_context.json | jq -r '.repository') + # AFTER=$(cat gh_context.json | jq -r '.event.after') + + # curl -L -v \ + # -X POST \ + # -H "Accept: application/vnd.github+json" \ + # -H "Authorization: Bearer ${{ github.token }}" \ + # https://api.github.com/repos/${OWNER_REPO}/statuses/${AFTER} \ + # -d '{"state":"pending", "description":"Running e2e on Windows", "context":"win-ci-e2e"}' # - name: Create instance # run: |