From 0893818c0e1e1a32307e92e84dc500fb9c52b4f9 Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Thu, 13 Jun 2024 11:31:20 -0700 Subject: [PATCH] Fix fallback --- .github/workflows/selenium-lab-tests.yaml | 2 +- .github/workflows/update-screenshots.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/selenium-lab-tests.yaml b/.github/workflows/selenium-lab-tests.yaml index 91bf2e9d4b..e79729e761 100644 --- a/.github/workflows/selenium-lab-tests.yaml +++ b/.github/workflows/selenium-lab-tests.yaml @@ -72,8 +72,8 @@ jobs: with: # If "sha" is given, it overrides PR. If neither is given, we fall # back to testing "main". - ref: ${{ inputs.pr == '' ? 'refs/heads/main' : 'refs/pull/${{ inputs.pr }}/head' }} sha: ${{ inputs.sha }} + ref: ${{ inputs.pr ? ('refs/pull/' + inputs.pr + '/head') : 'refs/heads/main' }} # Configure the build matrix based on our grid's YAML config. # The matrix contents will be computed by this first job and deserialized diff --git a/.github/workflows/update-screenshots.yaml b/.github/workflows/update-screenshots.yaml index 9c2135a5f1..fd317cacd8 100644 --- a/.github/workflows/update-screenshots.yaml +++ b/.github/workflows/update-screenshots.yaml @@ -28,8 +28,8 @@ jobs: uses: joeyparrish/shaka-github-tools/compute-sha@compute-sha # FIXME with: # If sha is given, it overrides PR. If neither is given, we fail. - ref: refs/pull/${{ inputs.pr }}/head sha: ${{ inputs.sha }} + ref: ${{ inputs.pr ? ('refs/pull/' + inputs.pr + '/head') : '' }} set-pending-status: name: Set Pending Status