From 8d1d1788e451aa14e25e245bc50d74ded96b1651 Mon Sep 17 00:00:00 2001 From: Chris Kelley Date: Tue, 20 Jul 2021 12:08:17 +0100 Subject: [PATCH] Add test-matrix.json --- action.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 71c1250..0d00c80 100644 --- a/action.yml +++ b/action.yml @@ -11,12 +11,13 @@ runs: run: | export latest=$(cat /etc/fedora-release | awk '{ print $3 }') export previous=$(cat /etc/fedora-release | awk '{ print $3 - 1}') - if [ "${{ secrets.MATRIX }}" == "" ] + export test_matrix=$(cat $GITHUB_ACTION_PATH/test-matrix.json) + if [ "$test_matrix" == "" ] then echo "::set-output name=matrix::{\"os\":[\"$previous\", \"$latest\"]}" echo "Running CI against Fedora $previous and $latest" else - echo "::set-output name=matrix::${{ secrets.MATRIX }}" - echo "Test matrix defined: ${{ secrets.MATRIX }}" + echo "::set-output name=matrix::\"$test_matrix\"" + echo "Test matrix defined: $test_matrix" fi shell: bash