From b2a4da7f2739a06d73675c2a9c4f536a4eeb7481 Mon Sep 17 00:00:00 2001 From: s3rj1k Date: Thu, 22 Feb 2024 20:58:15 +0100 Subject: [PATCH] Add support for SIGNALWIRE_USERNAME,SIGNALWIRE_TOKEN and ADDITIONAL_PACKAGES. --- .github/workflows/ci-rpm-packages.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-rpm-packages.yml b/.github/workflows/ci-rpm-packages.yml index dc728f9d..1410d192 100644 --- a/.github/workflows/ci-rpm-packages.yml +++ b/.github/workflows/ci-rpm-packages.yml @@ -50,11 +50,20 @@ on: type: string default: '/usr' description: Set CMAKE_INSTALL_PREFIX variable + ADDITIONAL_PACKAGES: + required: false + type: string + default: '' + description: 'Additional packages to install (space delimited)' secrets: DOCKERHUB_USERNAME: required: false DOCKERHUB_TOKEN: required: false + SIGNALWIRE_USERNAME: + required: false + SIGNALWIRE_TOKEN: + required: false jobs: deploy: @@ -71,11 +80,14 @@ jobs: - name: Build RPM Packages uses: signalwire/build-rpm-packages-action@main with: - project_name: ${{inputs.PROJECT_NAME}} - packager: ${{inputs.PACKAGER}} + project_name: ${{ inputs.PROJECT_NAME }} + packager: ${{ inputs.PACKAGER }} use_cmake: ${{ inputs.USE_CMAKE }} cmake_build_type: ${{ inputs.CMAKE_BUILD_TYPE }} cmake_install_prefix: ${{ inputs.CMAKE_INSTALL_PREFIX }} + additional_packages: ${{ inputs.ADDITIONAL_PACKAGES }} + signalwire_username: ${{ secrets.SIGNALWIRE_USERNAME }} + signalwire_token: ${{ secrets.SIGNALWIRE_TOKEN }} - name: Generate hash file run: echo $GITHUB_SHA > hash.txt