Skip to content

Commit

Permalink
Update build_packages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Elbakyan Shirak authored Nov 2, 2023
1 parent 33caa16 commit 3e5b28b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,16 +174,20 @@ jobs:
- name: Checking the DEB package for errors
if: matrix.packageType == 'deb'
run: |
lintian --profile debian /home/runner/work/${{ github.event.repository.name }}/${{ github.event.repository.name }}/buildtools/install/*.deb | tee -a LINTIAN
lintian --profile debian ${{ env.PACKAGE_DIRECTORY }}/buildtools/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: |
echo "${{ env.PACKAGE_DIRECTORY }}/install/rpm/SPECS/RPMS/noarch/"
ls -la ${{ env.PACKAGE_DIRECTORY }}/install/rpm/SPECS/RPMS/noarch/
echo "${{ env.PACKAGE_DIRECTORY }}/install/rpm/SPECS/SOURCES"
ls -la ${{ env.PACKAGE_DIRECTORY }}/install/rpm/SPECS/SOURCES
for rpm_package in ${{ env.PACKAGE_DIRECTORY }}/install/rpm/SPECS/RPMS/noarch/*.rpm; do
rpmlint --ignore-unused-rpmlintrc --rpmlintrc ${{ env.PACKAGE_DIRECTORY }}/rpm/SPECS/SOURCES/$(${{ env.PRODUCT_LOW }}).rpmlintrc $rpm_package | tee -a RPM_LINT
rpmlint --ignore-unused-rpmlintrc --rpmlintrc ${{ env.PACKAGE_DIRECTORY }}/install/rpm/SPECS/SOURCES/$(${{ env.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 }')"
Expand Down

0 comments on commit 3e5b28b

Please sign in to comment.