Skip to content

Commit

Permalink
fix: rename input to inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
p5 authored Jan 16, 2025
1 parent ab57ef6 commit 66f7365
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/reusable-generate-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
attempt_limit: 3
attempt_delay: 15000
command: |
if [[ ${{ input.kernel-flavor }} =~ asus|fsync|fsync-ba|surface ]]; then
if [[ ${{ inputs.kernel-flavor }} =~ asus|fsync|fsync-ba|surface ]]; then
container_name="fq-$(uuidgen)"
dnf="podman exec $container_name dnf"
Expand All @@ -66,14 +66,14 @@ jobs:
coreos_version=${1}
image_linux=$(skopeo inspect docker://quay.io/fedora/fedora-coreos:${coreos_version} | jq -r '.Labels["ostree.linux"]')
# Pin a kernel here, gross workaround TODO: Make this cleaner
# if [[ "${{ input.kernel-flavor }}" == "coreos-stable" ]]; then
# if [[ "${{ inputs.kernel-flavor }}" == "coreos-stable" ]]; then
# image_linux="6.11.3-300.fc41.x86_64"
# fi
major_minor_patch=$(echo $image_linux | grep -oP '^\d+\.\d+\.\d+')
kernel_rel_part=$(echo $image_linux | grep -oP '^\d+\.\d+\.\d+\-\K([123][0]{2})')
arch=$(echo $image_linux | grep -oP 'fc\d+\.\K.*$')
kernel_rel="$kernel_rel_part.fc${{ input.fedora-version }}"
kernel_rel="$kernel_rel_part.fc${{ inputs.fedora-version }}"
kernel_version="$major_minor_patch-$kernel_rel.$arch"
URL="https://kojipkgs.fedoraproject.org/packages/kernel/"$major_minor_patch"/"$kernel_rel"/"$arch"/kernel-"$kernel_version".rpm"
echo "Querying koji for ${coreos_version} kernel: $kernel_version"
Expand Down

0 comments on commit 66f7365

Please sign in to comment.