Skip to content

Commit

Permalink
Test build deb
Browse files Browse the repository at this point in the history
  • Loading branch information
isboston committed Dec 2, 2024
1 parent 13d5372 commit b6f1385
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/build_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- 'release/**'
- 'hotfix/**'
- 'develop'
- 'feature/build-action'
paths:
- 'install/common/**'
- 'install/deb/**'
Expand Down Expand Up @@ -34,9 +35,9 @@ env:
PRODUCT_LOW: "docspace"
BUILD_NUMBER: ${{ github.run_number }}
PACKAGE_DIRECTORY: "/home/runner/work/${{ github.event.repository.name }}/${{ github.event.repository.name }}"
BRANCH_BUILDTOOLS: ${{ github.event.inputs.branch-buildtools != '' && github.event.inputs.branch-buildtools || github.ref_name || 'develop' }}
BRANCH_CLIENT: ${{ github.event.inputs.branch-client != '' && github.event.inputs.branch-client || github.ref_name || 'develop' }}
BRANCH_SERVER: ${{ github.event.inputs.branch-server != '' && github.event.inputs.branch-server || github.ref_name || 'develop' }}
BRANCH_BUILDTOOLS: 'hotfix/v3.0.1'
BRANCH_CLIENT: 'hotfix/v3.0.1'
BRANCH_SERVER: 'hotfix/v3.0.1'

jobs:
prepare:
Expand Down Expand Up @@ -64,16 +65,12 @@ jobs:
BUILD_RPM="${{ steps.changes.outputs.build_rpm }}"
echo "BUILD_DEB=$BUILD_DEB"
echo "BUILD_RPM=$BUILD_RPM"
declare -a package_types=()
if [[ "$BUILD_DEB" == "true" ]]; then
package_types+=("deb")
fi
if [[ "$BUILD_RPM" == "true" ]]; then
package_types+=("rpm")
fi
package_types=()
[ "$BUILD_DEB" == "true" ] && package_types+=("deb")
[ "$BUILD_RPM" == "true" ] && package_types+=("rpm")
if [ ${#package_types[@]} -eq 0 ]; then
echo "No packages to build"
exit 0
exit 0
fi
matrix=$(printf '%s\n' "${package_types[@]}" | jq -R . | jq -sc '{include: map({packageType: .})}')
echo "matrix=$matrix" >> $GITHUB_OUTPUT
Expand Down
2 changes: 1 addition & 1 deletion install/deb/debian/po/POTFILES.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# List of source files containing translatable strings.
## List of source files containing translatable strings.

[type: gettext/rfc822deb] {{product}}.templates

0 comments on commit b6f1385

Please sign in to comment.