Skip to content

Commit

Permalink
Move erroneously located action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ckelleyRH committed Jul 19, 2021
1 parent 6acdca8 commit 4f68e9c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/action.yml → action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
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 @@ -12,5 +16,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 [ "${{ secrets.MATRIX }}" == "" ]
then
echo "::set-output name=matrix::{\"os\":[\"$previous\", \"$latest\"]}"
else
echo "::set-output name=matrix::${{ secrets.MATRIX }}"
fi
echo "::set-output name=matrix::{\"os\":[\"$previous\", \"$latest\"]}"
shell: bash

0 comments on commit 4f68e9c

Please sign in to comment.