From 1741e5a2560edfd278521a9663c7bf604b3d5617 Mon Sep 17 00:00:00 2001 From: Eriq Taing Date: Tue, 28 Apr 2026 22:17:29 -0400 Subject: [PATCH] Allow spcification for fedora image version to build on --- action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 1fb6048..42bdc06 100644 --- a/action.yml +++ b/action.yml @@ -22,6 +22,9 @@ inputs: extra-patch-directory: description: "(Optional) Directory to grab files for patches." default: "" + fedora-version: + description: "(Optional) Version of fedora to build on" + default: "latest" runs: using: "composite" @@ -60,13 +63,14 @@ runs: env: SPEC_FILE_PATH: ${{ inputs.spec-file-path }} ACTION_ROOT: ${{ gitea.action_path }} + FEDORA_TAG: ${{ inputs.fedora-version }} run: | SPEC_FILE_NAME=$(basename ${SPEC_FILE_PATH}) podman run --rm \ -v ./rpmbuild:/root/rpmbuild:rw,z \ -v ${ACTION_ROOT}/entrypoint.sh:/root/entrypoint.sh:ro,z \ -w /root \ - fedora:latest \ + fedora:${FEDORA_TAG} \ /root/entrypoint.sh /root/rpmbuild/SPECS/${SPEC_FILE_NAME} - name: Upload package