Skip to content

Commit ae17a72

Browse files
author
github-actions
committed
syncing from "puppetlabs/support_workflows"
1 parent c789ba5 commit ae17a72

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/pe_latest_testing.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,12 @@ jobs:
6666
- name: Setup Acceptance Test Matrix
6767
id: get-matrix
6868
run: |
69-
out=$(jq -c '. + ($matrix | .[])' --slurpfile matrix spec/fixtures/matrix/latest.json <<<'${{ steps.latest_release.outputs.latest }}')
70-
echo "::set-output name=matrix::$out"
69+
if [[ -e spec/fixtures/matrix/latest.json ]]; then
70+
out=$(jq -c '. + ($matrix | .[])' --slurpfile matrix spec/fixtures/matrix/latest.json <<<'${{ steps.latest_release.outputs.latest }}')
71+
echo "::set-output name=matrix::$out"
72+
else
73+
echo "::set-output name=matris::{}"
74+
fi
7175
7276
- name: "Honeycomb: Record Setup Test Matrix time"
7377
if: ${{ always() }}

.github/workflows/pe_lts_testing.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,12 @@ jobs:
6666
- name: Setup Acceptance Test Matrix
6767
id: get-matrix
6868
run: |
69-
out=$(jq -c '. + ($matrix | .[])' --slurpfile matrix spec/fixtures/matrix/lts.json <<<'${{ steps.latest_release.outputs.latest }}')
70-
echo "::set-output name=matrix::$out"
69+
if [[ -e spec/fixtures/matrix/lts.json ]]; then
70+
out=$(jq -c '. + ($matrix | .[])' --slurpfile matrix spec/fixtures/matrix/lts.json <<<'${{ steps.latest_release.outputs.latest }}')
71+
echo "::set-output name=matrix::$out"
72+
else
73+
echo "::set-output name=matris::{}"
74+
fi
7175
7276
- name: "Honeycomb: Record Setup Test Matrix time"
7377
if: ${{ always() }}

0 commit comments

Comments
 (0)