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

@ -126,6 +126,7 @@ jobs:
needs: [AlmaLinux-RPM-build, UBI-8-RPM-build]
steps:
# See: https://github.com/actions/download-artifact
- name: Download AlmaLinux 8.5 RPM
uses: actions/download-artifact@v2
with:
@ -143,18 +144,31 @@ jobs:
uses: actions/download-artifact@v2
with:
name: cc-metric-collector SRPM for UBI 8
- name: Check files
run: ls *
# # See: https://github.com/softprops/action-gh-release
# - name: Release
# uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
# with:
# name: cc-metric-collector-${{github.ref_name}}
# files: |
# ${{ needs.AlmaLinux-RPM-build.outputs.RPM }}
# ${{ needs.AlmaLinux-RPM-build.outputs.SRPM }}
# ${{ needs.UBI-8-RPM-build.outputs.RPM }}
# ${{ needs.UBI-8-RPM-build.outputs.SRPM }}
- name: Set RPM variables
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
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
name: cc-metric-collector-${{github.ref_name}}
files: |
${{ steps.files.outputs.ALMA_85_RPM }}
${{ steps.files.outputs.ALMA_85_SRPM }}
${{ steps.files.outputs.UBI_8_RPM }}
${{ steps.files.outputs.UBI_8_SRPM }}