Skip to content

Commit 59b3ad1

Browse files
committed
CI (self-hosted, github-hosted):
- correct jobs matrix, skip if 8 and GPT or kitten and MBR CI (github-hosted): - correct Mattermost message heading when notifying about AWS S3 bucket push
1 parent 9698d13 commit 59b3ad1

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

Diff for: .github/workflows/build-rpi-github-hosted.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,14 @@ jobs:
6565
build-image:
6666
name: ${{ inputs.version_major }} '${{ matrix.image_types }}' ${{ matrix.partitioning }} image
6767
runs-on: ubuntu-24.04
68+
# Skip if 8 and GPT or Kitten and MBR
69+
if: ${{ ( inputs.gpt && inputs.version_major != '8' || inputs.mbr && inputs.version_major != '10-kitten' ) && ( inputs.console || inputs.gnome ) && ( inputs.mbr || inputs.gpt ) }}
6870
strategy:
6971
fail-fast: false
7072
matrix:
7173
# Set matrix based on boolean inputs.* with true value
72-
image_types: ${{ fromJSON(format('["{0}", "{1}"]', ( inputs.console && 'console' ), ( inputs.gnome && 'gnome' ) )) }}
73-
partitioning: ${{ fromJSON(format('["{0}", "{1}"]', ( inputs.mbr && 'mbr' ), ( inputs.gpt && 'gpt' ) )) }}
74+
image_types: ${{ fromJSON(format('["{0}", "{1}"]', inputs.console && 'console' || 'false', inputs.gnome && 'gnome' || 'false' )) }}
75+
partitioning: ${{ fromJSON(format('["{0}", "{1}"]', inputs.mbr && 'mbr' || 'false', inputs.gpt && 'gpt' || 'false' )) }}
7476
version_major: ${{ fromJSON(format('["{0}"]', inputs.version_major )) }}
7577
exclude:
7678
- image_types: 'false'
@@ -476,7 +478,7 @@ jobs:
476478
MATTERMOST_CHANNEL: ${{ vars.MATTERMOST_CHANNEL }}
477479
MATTERMOST_USERNAME: ${{ github.triggering_actor }}
478480
TEXT: |
479-
**AlmaLinux OS ${{ env.kitten }}${{ env.full_release_version }} Raspberry Pi image Build** `${{ env.date_time_stamp }}` generated by the GitHub [Action](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
481+
**AlmaLinux OS ${{ env.release_str }} Raspberry Pi image Build** `${{ env.date_time_stamp }}` generated by the GitHub [Action](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
480482
481483
:almalinux: **${{ matrix.image_types }} ${{ matrix.partitioning }}**
482484

Diff for: .github/workflows/build-rpi.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,14 @@ jobs:
6969
runs-on: ubuntu-24.04
7070
permissions:
7171
actions: write
72+
# Skip if 8 and GPT or Kitten and MBR
73+
if: ${{ ( inputs.gpt && inputs.version_major != '8' || inputs.mbr && inputs.version_major != '10-kitten' ) && ( inputs.console || inputs.gnome ) && ( inputs.mbr || inputs.gpt ) }}
7274
strategy:
7375
fail-fast: false
7476
matrix:
7577
# Set matrix based on boolean inputs.* with true value
76-
image_types: ${{ fromJSON(format('["{0}", "{1}"]', ( inputs.console && 'console' ), ( inputs.gnome && 'gnome' ) )) }}
77-
partitioning: ${{ fromJSON(format('["{0}", "{1}"]', ( inputs.mbr && 'mbr' ), ( inputs.gpt && 'gpt' ) )) }}
78+
image_types: ${{ fromJSON(format('["{0}", "{1}"]', inputs.console && 'console' || 'false', inputs.gnome && 'gnome' || 'false' )) }}
79+
partitioning: ${{ fromJSON(format('["{0}", "{1}"]', inputs.mbr && 'mbr' || 'false', inputs.gpt && 'gpt' || 'false' )) }}
7880
version_major: ${{ fromJSON(format('["{0}"]', inputs.version_major )) }}
7981
exclude:
8082
- image_types: 'false'
@@ -120,8 +122,8 @@ jobs:
120122
# max-parallel: 1
121123
matrix:
122124
# Set matrix based on boolean inputs.* with true value
123-
image_types: ${{ fromJSON(format('["{0}", "{1}"]', ( inputs.console && 'console' ), ( inputs.gnome && 'gnome' ) )) }}
124-
partitioning: ${{ fromJSON(format('["{0}", "{1}"]', ( inputs.mbr && 'mbr' ), ( inputs.gpt && 'gpt' ) )) }}
125+
image_types: ${{ fromJSON(format('["{0}", "{1}"]', inputs.console && 'console' || 'false', inputs.gnome && 'gnome' || 'false' )) }}
126+
partitioning: ${{ fromJSON(format('["{0}", "{1}"]', inputs.mbr && 'mbr' || 'false', inputs.gpt && 'gpt' || 'false' )) }}
125127
version_major: ${{ fromJSON(format('["{0}"]', inputs.version_major )) }}
126128
exclude:
127129
- image_types: 'false'

0 commit comments

Comments
 (0)