Add feature to allow adding files from a directory to sources in
rpmbuild
This commit is contained in:
12
action.yml
12
action.yml
@@ -16,6 +16,9 @@ inputs:
|
||||
repository-user-token:
|
||||
description: "Token to use with user"
|
||||
required: true
|
||||
extra-source-directory:
|
||||
description: "(Optional) Directory to grab files for sources."
|
||||
default: ""
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
@@ -28,6 +31,15 @@ runs:
|
||||
mkdir -p ./rpmbuild/{RPMS,SPECS}
|
||||
cp ${SPEC_FILE_PATH} ./rpmbuild/SPECS
|
||||
|
||||
- name: Add extra source files
|
||||
shell: bash
|
||||
if: "${{ inputs.extra-source-directory != '' }}"
|
||||
env:
|
||||
SOURCE_DIRECTORY: ${{ inputs.extra-source-directory }}
|
||||
run: |
|
||||
find ${SOURCE_DIRECTORY} -type f -not -name "*\.spec" \
|
||||
-exec cp {} ./rpmbuild/SOURCES \;
|
||||
|
||||
- name: Build RPM
|
||||
shell: bash
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user