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