@@ -11,6 +11,12 @@ outputs:
1111 package_distrib_name :
1212 description : " Distribution suffix in package name"
1313 value : ${{ steps.parse-distrib.outputs.package_distrib_name }}
14+ package_extension :
15+ description : " Package extension (rpm or deb)"
16+ value : ${{ steps.parse-distrib.outputs.package_extension }}
17+ distrib_family :
18+ description : " Distrib family (el, debian, ubuntu)"
19+ value : ${{ steps.parse-distrib.outputs.distrib_family }}
1420
1521runs :
1622 using : " composite"
@@ -21,26 +27,39 @@ runs:
2127 if [[ "${{ inputs.distrib }}" == "centos7" || "${{ inputs.distrib }}" == "el7" ]]; then
2228 PACKAGE_DISTRIB_SEPARATOR="."
2329 PACKAGE_DISTRIB_NAME="el7"
30+ PACKAGE_EXTENSION="rpm"
31+ DISTRIB_FAMILY="el"
2432 elif [[ "${{ inputs.distrib }}" == "alma8" || "${{ inputs.distrib }}" == "el8" ]]; then
2533 PACKAGE_DISTRIB_SEPARATOR="."
2634 PACKAGE_DISTRIB_NAME="el8"
35+ PACKAGE_EXTENSION="rpm"
36+ DISTRIB_FAMILY="el"
2737 elif [[ "${{ inputs.distrib }}" == "alma9" || "${{ inputs.distrib }}" == "el9" ]]; then
2838 PACKAGE_DISTRIB_SEPARATOR="."
2939 PACKAGE_DISTRIB_NAME="el9"
40+ PACKAGE_EXTENSION="rpm"
41+ DISTRIB_FAMILY="el"
3042 elif [[ "${{ inputs.distrib }}" == "bullseye" ]]; then
3143 PACKAGE_DISTRIB_SEPARATOR="+"
3244 PACKAGE_DISTRIB_NAME="deb11u1"
45+ PACKAGE_EXTENSION="deb"
46+ DISTRIB_FAMILY="debian"
3347 elif [[ "${{ inputs.distrib }}" == "bookworm" ]]; then
3448 PACKAGE_DISTRIB_SEPARATOR="+"
3549 PACKAGE_DISTRIB_NAME="deb12u1"
50+ PACKAGE_EXTENSION="deb"
51+ DISTRIB_FAMILY="debian"
3652 elif [[ "${{ inputs.distrib }}" == "jammy" ]]; then
3753 PACKAGE_DISTRIB_SEPARATOR="-"
3854 PACKAGE_DISTRIB_NAME="0ubuntu.22.04"
55+ PACKAGE_EXTENSION="deb"
56+ DISTRIB_FAMILY="ubuntu"
3957 else
4058 echo "::error::Distrib ${{ inputs.distrib }} cannot be parsed"
4159 exit 1
4260 fi
43-
4461 echo "package_distrib_separator=$PACKAGE_DISTRIB_SEPARATOR" >> $GITHUB_OUTPUT
4562 echo "package_distrib_name=$PACKAGE_DISTRIB_NAME" >> $GITHUB_OUTPUT
63+ echo "package_extension=$PACKAGE_EXTENSION" >> $GITHUB_OUTPUT
64+ echo "distrib_family=$DISTRIB_FAMILY" >> $GITHUB_OUTPUT
4665 shell : bash
0 commit comments