Skip to content

Commit

Permalink
Use org-level defined secret, if available
Browse files Browse the repository at this point in the history
  • Loading branch information
ckelleyRH committed Jul 20, 2021
1 parent 4c09565 commit ff0ca98
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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

0 comments on commit ff0ca98

Please sign in to comment.