Skip to content

debug commit

debug commit #21

Workflow file for this run

---
name: Build release RPMs
on:
push:
branches:
- '*'
jobs:
build_el7_rpm:
name: Build EL7 RPM
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Trigger Manpage Generation
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.everest-preview+json" \
-H "Content-Type: application/json" \
https://api.github.com/repos/${{ github.repository }}/dispatches \
--data '{"event_type": "trigger-manpage-generation"}'
- name: Show File Modification
run: |
FILE_PATH="man/convert2rhel.8"
# Fetch the changes from the remote repository
git fetch --quiet
# Check if the file has been modified
if git diff origin/main $FILE_PATH; then
echo "No changes detected in $FILE_PATH."
else
echo "Changes detected in $FILE_PATH. Printing diff:"
git diff origin/main $FILE_PATH
exit 0
fi
- name: Build RPM package for EL7
id: rpm_build_el7
uses: oamg/rpmbuild@el7
with:
spec_path: "packaging/convert2rhel.spec"
- name: Upload EL7 RPM as release asset
id: upload_release_asset_el7
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ steps.rpm_build_el7.outputs.rpm_path }}
asset_name: ${{ steps.rpm_build_el7.outputs.rpm_name }}
asset_content_type: ${{ steps.rpm_build_el7.outputs.content_type }}
build_el8_rpm:
name: Build EL8 RPM
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Build RPM package for EL8
id: rpm_build_el8
uses: oamg/rpmbuild@el8
with:
spec_path: "packaging/convert2rhel.spec"
- name: Upload EL8 RPM as release asset
id: upload_release_asset_el8
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ steps.rpm_build_el8.outputs.rpm_path }}
asset_name: ${{ steps.rpm_build_el8.outputs.rpm_name }}
asset_content_type: ${{ steps.rpm_build_el8.outputs.content_type }}
build_el9_rpm:
if: false
name: Build EL9 RPM
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build RPM package for EL9
id: rpm_build_el9
uses: oamg/rpmbuild@el9
with:
spec_path: "packaging/convert2rhel.spec"
- name: Upload EL9 RPM as release asset
id: upload_release_asset_el9
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ steps.rpm_build_el9.outputs.rpm_path }}
asset_name: ${{ steps.rpm_build_el9.outputs.rpm_name }}
asset_content_type: ${{ steps.rpm_build_el9.outputs.content_type }}