Collect files and create fresh step outputs for release

This commit is contained in:
Thomas Roehl 2022-03-06 16:03:11 +01:00
parent e60be4894d
commit 2bd77846c7

View File

@ -126,6 +126,7 @@ jobs:
needs: [AlmaLinux-RPM-build, UBI-8-RPM-build] needs: [AlmaLinux-RPM-build, UBI-8-RPM-build]
steps: steps:
# See: https://github.com/actions/download-artifact
- name: Download AlmaLinux 8.5 RPM - name: Download AlmaLinux 8.5 RPM
uses: actions/download-artifact@v2 uses: actions/download-artifact@v2
with: with:
@ -144,17 +145,30 @@ jobs:
with: with:
name: cc-metric-collector SRPM for UBI 8 name: cc-metric-collector SRPM for UBI 8
- name: Check files - name: Set RPM variables
run: ls * id: files
run: |
ALMA_85_RPM=$(ls *alma85*.rpm)
ALMA_85_SRPM=$(ls *alma85*.srpm)
UBI_8_RPM=$(ls *el8*.rpm)
UBI_8_SRPM=$(ls *el8*.srpm)
echo "ALMA_85_RPM::${ALMA_85_RPM}"
echo "ALMA_85_SRPM::${ALMA_85_SRPM}"
echo "UBI_8_RPM::${UBI_8_RPM}"
echo "UBI_8_SRPM::${UBI_8_SRPM}"
echo "::set-output name=ALMA_85_RPM::${ALMA_85_RPM}"
echo "::set-output name=ALMA_85_SRPM::${ALMA_85_SRPM}"
echo "::set-output name=UBI_8_RPM::${UBI_8_RPM}"
echo "::set-output name=UBI_8_SRPM::${UBI_8_SRPM}"
# # See: https://github.com/softprops/action-gh-release # See: https://github.com/softprops/action-gh-release
# - name: Release - name: Release
# uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
# with: with:
# name: cc-metric-collector-${{github.ref_name}} name: cc-metric-collector-${{github.ref_name}}
# files: | files: |
# ${{ needs.AlmaLinux-RPM-build.outputs.RPM }} ${{ steps.files.outputs.ALMA_85_RPM }}
# ${{ needs.AlmaLinux-RPM-build.outputs.SRPM }} ${{ steps.files.outputs.ALMA_85_SRPM }}
# ${{ needs.UBI-8-RPM-build.outputs.RPM }} ${{ steps.files.outputs.UBI_8_RPM }}
# ${{ needs.UBI-8-RPM-build.outputs.SRPM }} ${{ steps.files.outputs.UBI_8_SRPM }}