Testing Workflow

This commit is contained in:
Christian Tosta
2025-04-18 05:00:09 -03:00
parent 39f0345952
commit 62ed07d606
2 changed files with 4 additions and 7 deletions

View File

@@ -37,7 +37,7 @@ jobs:
- name: Set environment variables
run: |
echo " \
echo "\
PKG_NAME=ca-certificates-brazil \
PKG_VERSION=$(grep \
-m1 -iPo '.*CPACK_PACKAGE_VERSION [\"]*\K[\S]*[^(\"\))]' \
@@ -46,9 +46,8 @@ jobs:
- name: Copy SOURCES and SPEC file
run: |
echo "${{ env.PKG_NAME }} = ${{ env.PKG_VERSION }}"
sed "s/__VERSION__/${{ env.PKG_VERSION }}/g" packaging/pkg.spec.in \
> ~/rpmbuild/SPECS/${{ env.PKG_NAME }}.spec
cp packaging/pkg.spec.in ~/rpmbuild/SPECS/${PKG_NAME}.spec
rpmdev-bumpspec -n ${PKG_VERSION} ~/rpmbuild/SPECS/${PKG_NAME}.spec
cp dist/*.src.tar.gz ~/rpmbuild/SOURCES/
- name: Build RPM