Skip to content

Commit 886a287

Browse files
committed
added logging, refs/inputs logging
1 parent 9e280e0 commit 886a287

1 file changed

Lines changed: 24 additions & 20 deletions

File tree

.github/workflows/e2e-pullpreview.yml

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
description: "Custom Playwright --grep expression (used when suite=custom)"
1919
required: false
2020
setupMethod:
21-
description: "Setup method override passed to test run and preview deploy"
21+
description: "Setup method"
2222
required: true
2323
default: sso-external
2424
type: choice
@@ -31,39 +31,25 @@ on:
3131
required: true
3232
default: false
3333
type: boolean
34-
integration_repo:
35-
description: "Repository that owns PullPreview deployment"
36-
required: true
37-
default: opf/integration-qa-helmfile
38-
type: string
39-
integration_workflow:
40-
description: "Dispatchable workflow filename in integration repo"
41-
required: true
42-
default: pullpreview-dispatch.yml
43-
type: string
4434
integration_ref:
4535
description: "Branch/ref in integration repo to execute workflow from"
4636
required: true
4737
default: main
4838
type: string
49-
preview_name:
50-
description: "Optional custom preview name"
51-
required: false
52-
type: string
5339
openproject_version:
54-
description: "Optional OpenProject docker tag override"
40+
description: "OpenProject image tag"
5541
required: false
5642
type: string
5743
nextcloud_version:
58-
description: "Optional Nextcloud image tag override"
44+
description: "Nextcloud image tag"
5945
required: false
6046
type: string
6147
keycloak_version:
62-
description: "Optional Keycloak image tag override"
48+
description: "Keycloak image tag"
6349
required: false
6450
type: string
6551
integration_app_version:
66-
description: "Optional integration_openproject app version (alias if integration_openproject_version is empty)"
52+
description: "integration_openproject app version (alias if integration_openproject_version is empty)"
6753
required: false
6854
type: string
6955
integration_openproject_version:
@@ -99,6 +85,19 @@ jobs:
9985
- name: Checkout
10086
uses: actions/checkout@v4
10187

88+
- name: Log refs and inputs
89+
shell: bash
90+
run: |
91+
set -euo pipefail
92+
echo "E2E repo ref: ${GITHUB_REF_NAME:-} sha: ${GITHUB_SHA:-}"
93+
echo "Integration repo: ${{ github.event.inputs.integration_repo }}"
94+
echo "Integration workflow: ${{ github.event.inputs.integration_workflow }}"
95+
echo "Integration ref: ${{ github.event.inputs.integration_ref }}"
96+
echo "Setup method: ${{ github.event.inputs.setupMethod }}"
97+
echo "Requested versions: OP='${{ github.event.inputs.openproject_version }}' NC='${{ github.event.inputs.nextcloud_version }}' KC='${{ github.event.inputs.keycloak_version }}'"
98+
echo "Requested integration app: legacy='${{ github.event.inputs.integration_app_version }}' io_ver='${{ github.event.inputs.integration_openproject_version }}' io_git='${{ github.event.inputs.integration_openproject_git_branch }}'"
99+
echo "Requested branches: OP='${{ github.event.inputs.openproject_branch }}' NC='${{ github.event.inputs.nextcloud_branch }}'"
100+
102101
- name: Resolve grep and preview name
103102
id: resolve
104103
shell: bash
@@ -239,9 +238,14 @@ jobs:
239238
if [ -n "${run_match}" ]; then
240239
run_json="$(echo "${run_match}" | base64 --decode)"
241240
run_id="$(echo "${run_json}" | jq -r '.id')"
241+
head_sha="$(echo "${run_json}" | jq -r '.head_sha // empty')"
242242
status="$(echo "${run_json}" | jq -r '.status')"
243243
conclusion="$(echo "${run_json}" | jq -r '.conclusion // ""')"
244-
echo "Deploy run ${run_id}: status=${status}, conclusion=${conclusion}"
244+
if [ -n "${head_sha}" ]; then
245+
echo "Deploy run ${run_id}: sha=${head_sha} status=${status}, conclusion=${conclusion}"
246+
else
247+
echo "Deploy run ${run_id}: status=${status}, conclusion=${conclusion}"
248+
fi
245249
246250
if [ "${status}" = "completed" ]; then
247251
break

0 commit comments

Comments
 (0)