Skip to content

Commit

Permalink
Add test-matrix.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ckelleyRH committed Jul 20, 2021
1 parent 1b99d40 commit 8d1d178
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8d1d178

Please sign in to comment.