diff --git a/action.yml b/action.yml index 795f940..9f8b902 100644 --- a/action.yml +++ b/action.yml @@ -1,9 +1,5 @@ name: "Determine Fedora versions" description: "Determine the latest and previous versions of Fedora to run the CI against" -inputs: - test-override: - description: 'Override matrix for testing' - required: true outputs: matrix: description: "Fedora versions" @@ -16,11 +12,11 @@ runs: export latest=$(cat /etc/fedora-release | awk '{ print $3 }') export previous=$(cat /etc/fedora-release | awk '{ print $3 - 1}') echo "Running CI against Fedora $previous and $latest" - if [ "${{ inputs.test-override }}" == "" ] + if [ "${{ secrets.MATRIX }}" == "" ] then echo "::set-output name=matrix::{\"os\":[\"$previous\", \"$latest\"]}" else - echo "::set-output name=matrix::${{ inputs.test-override }}" + echo "::set-output name=matrix::${{ secrets.MATRIX }}" fi echo "::set-output name=matrix::{\"os\":[\"$previous\", \"$latest\"]}" shell: bash