Skip to content

Spec file with variable such as 'version' - how do we pass them? #1

@strus38

Description

@strus38

Hi
Trying to build my spec file, it contains:
%{!?version: %define version 1.2.0} ...
I tried to pass the version as an env variable to the container, but it is ignored:
- name: build RPM package id: rpm_build uses: naveenrajm7/rpmbuild@master env: version: 1.4.0 ...
So how should I do?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions