Skip to content

Commit

Permalink
Temp change
Browse files Browse the repository at this point in the history
  • Loading branch information
jsliacan committed Dec 21, 2023
1 parent 076de8c commit 1ab1f2b
Showing 1 changed file with 32 additions and 10 deletions.
42 changes: 32 additions & 10 deletions .github/workflows/windows-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
matrix:
windows-version: ['11']
windows-featurepack: ['23h2-ent']

steps:

- name: Download GH context
Expand All @@ -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
<?xml version="1.0" encoding="utf-8"?>
<INTRO>
<title>Some title</title>
</INTRO>
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: |
Expand Down

0 comments on commit 1ab1f2b

Please sign in to comment.