Skip to content

Commit

Permalink
chore(ci): move logic out of matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmiller committed Apr 10, 2024
1 parent 0383801 commit 873a082
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/reusable-build-iso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,13 @@ jobs:
image_flavor: surface-nvidia
# Don't build version 40 yet
- fedora_version: 40
include:
- fedora_version: 38
is_gts_version: true
- fedora_version: 39
is_gts_version: false
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/[email protected]

- name: Checkout Repo
uses: actions/checkout@v4

- name: Matrix Variables
run: |
if [[ "${{ matrix.image_flavor }}" == "main" ]]; then
Expand All @@ -71,18 +67,23 @@ jobs:
elif [[ ${{ inputs.brand_name }} == "aurora" ]]; then
echo "VARIANT=Kinoite" >> $GITHUB_ENV
fi
- name: Set Image Tag
id: generate-tag
shell: bash
run: |
TAG="latest"
if [[ ${{ matrix.is_gts_version }} == "true" ]]; then
if [[ ${{ matrix.fedora_version }} == 38 ]]; then
IS_GTS_VERSION=true
fi
if [[ ${IS_GTS_VERSION} ]]; then
TAG="gts"
fi
if [[ "${{ github.ref_name }}" == "testing" ]]; then
if [[ "${{ matrix.is_gts_version }}" == "true" ]]; then
if [[ ${IS_GTS_VERSION} ]]; then
TAG="gts-testing"
else
TAG="testing"
Expand All @@ -95,6 +96,7 @@ jobs:
#fi
echo "tag=${TAG}" >> $GITHUB_OUTPUT
- name: Set Flatpaks Directory Shortname
id: generate-flatpak-dir-shortname
shell: bash
Expand Down

0 comments on commit 873a082

Please sign in to comment.