From e05ec0efc330c3e763157a65eaff11cbf300bf97 Mon Sep 17 00:00:00 2001 From: Mario Vitale Date: Tue, 16 Jul 2024 16:36:42 +0200 Subject: [PATCH] Fix E2E test triggering (#27669) Co-authored-by: Mattermost Build --- .github/workflows/e2e-fulltests-ci.yml | 27 ++++++++++++-------------- .github/workflows/e2e-tests-ci.yml | 4 ++-- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/.github/workflows/e2e-fulltests-ci.yml b/.github/workflows/e2e-fulltests-ci.yml index 05c35f1095..c9af14ecde 100644 --- a/.github/workflows/e2e-fulltests-ci.yml +++ b/.github/workflows/e2e-fulltests-ci.yml @@ -7,11 +7,11 @@ on: inputs: ref: type: string - description: Branch, tag or SHA of the commit to test. Ignored if PR_NUMBER is specified. Set to a tag when release testing. + description: Git ref to test. Must be a full commit SHA for PR testing, and a tag for release testing. Ignored for daily tests. required: false PR_NUMBER: type: string - description: If testing a PR, specify this instead of ref + description: If testing a PR, this must be specified as well. required: false MM_ENV: type: string @@ -95,15 +95,11 @@ jobs: fi case "$REPORT_TYPE" in NONE | PR) - ### For ref generation: either use 'inputs.PR_NUMBER' or 'inputs.ref' - if [ -n "$PR_NUMBER" ]; then - curl -fsSL -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: Bearer ${{ github.token }}" "${{ github.api_url }}/repos/${{ github.repository }}/pulls/${PR_NUMBER}" -o pr.json - COMMIT_SHA="$(jq -r .head.sha