Skip to content

Commit

Permalink
Test refactoring common scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
isboston committed Jan 23, 2025
1 parent 625f703 commit 58893bb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 22 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/build_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ env:
PRODUCT_LOW: "docspace"
BUILD_NUMBER: ${{ github.run_number }}
PACKAGE_DIRECTORY: "/home/runner/work/${{ github.event.repository.name }}/${{ github.event.repository.name }}"
BRANCH_BUILDTOOLS: 'feature/fix-common-scripts'
BRANCH_BUILDTOOLS: 'develop'
BRANCH_CLIENT: 'develop'
BRANCH_SERVER: 'develop'

Expand Down Expand Up @@ -76,8 +76,8 @@ jobs:
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
[[ "${{ github.event.inputs.deb_build }}" == "true" ]] && package_types+=("deb")
[[ "${{ github.event.inputs.rpm_build }}" == "true" ]] && package_types+=("rpm")
# elif [[ "${{ steps.changes.outputs.build_all }}" == "true" ]]; then
# package_types+=("deb" "rpm")
elif [[ "${{ steps.changes.outputs.build_all }}" == "true" ]]; then
package_types+=("deb" "rpm")
else
[[ "${{ github.event.inputs.deb_build }}" == "true" ]] && package_types+=("deb")
[[ "${{ github.event.inputs.rpm_build }}" == "true" ]] && package_types+=("rpm")
Expand Down Expand Up @@ -209,23 +209,23 @@ jobs:
&& echo "Success: $(basename "$rpm_package") uploaded." || echo "Error: Failed to upload $(basename "$rpm_package")"
done
- name: Checking the DEB package for errors
if: matrix.packageType == 'deb'
run: |
lintian --profile debian ${PACKAGE_DIRECTORY}/install/*.deb | tee -a LINTIAN
if grep -qE '^(W:|E:)' LINTIAN; then
echo "::warning Noticedeb=lintian::$(cat LINTIAN | awk '/^W:/ { ws += 1 } /^E:/ { es += 1 } END { print "Warnings:", ws, "Errors:", es }')"
fi
- name: Checking the RPM package for errors
if: matrix.packageType == 'rpm'
run: |
for rpm_package in ${PACKAGE_DIRECTORY}/install/rpm/SPECS/RPMS/noarch/*.rpm; do
rpmlint --ignore-unused-rpmlintrc --rpmlintrc ${PACKAGE_DIRECTORY}/install/rpm/SPECS/SOURCES/${PRODUCT_LOW}.rpmlintrc $rpm_package | tee -a RPM_LINT
done
if grep -qE '(W:|E:)' RPM_LINT; then
echo "::warning Noticerpm=rpmlint::$(cat RPM_LINT | awk '/W:/ { ws += 1 } /E:/ { es += 1 } END { print "Warnings:", ws, "Errors:", es }')"
fi
# - name: Checking the DEB package for errors
# if: matrix.packageType == 'deb'
# run: |
# lintian --profile debian ${PACKAGE_DIRECTORY}/install/*.deb | tee -a LINTIAN
# if grep -qE '^(W:|E:)' LINTIAN; then
# echo "::warning Noticedeb=lintian::$(cat LINTIAN | awk '/^W:/ { ws += 1 } /^E:/ { es += 1 } END { print "Warnings:", ws, "Errors:", es }')"
# fi

# - name: Checking the RPM package for errors
# if: matrix.packageType == 'rpm'
# run: |
# for rpm_package in ${PACKAGE_DIRECTORY}/install/rpm/SPECS/RPMS/noarch/*.rpm; do
# rpmlint --ignore-unused-rpmlintrc --rpmlintrc ${PACKAGE_DIRECTORY}/install/rpm/SPECS/SOURCES/${PRODUCT_LOW}.rpmlintrc $rpm_package | tee -a RPM_LINT
# done
# if grep -qE '(W:|E:)' RPM_LINT; then
# echo "::warning Noticerpm=rpmlint::$(cat RPM_LINT | awk '/W:/ { ws += 1 } /E:/ { es += 1 } END { print "Warnings:", ws, "Errors:", es }')"
# fi

trigger_oci:
name: Trigger ci-oci-install Workflow
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci-oci-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ jobs:
run: |
matrix=$(echo '{
"include": [
{"execute": '${{ github.event.inputs.centos9s || true }}', "name": "CentOS9S", "os": "centos9s", "distr": "generic"},
{"execute": '${{ github.event.inputs.ubuntu2404 || true }}', "name": "Ubuntu24.04", "os": "ubuntu-24.04", "distr": "bento"},
{"execute": '${{ github.event.inputs.fedora41 || true }}', "name": "Fedora41", "os": "41-cloud-base", "distr": "fedora"}
]
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 58893bb

Please sign in to comment.