Skip to content

Commit

Permalink
added in a debug for befor/after the manpage gen
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-ang9 committed Nov 29, 2023
1 parent 50275da commit 8476f24
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
name: Build release RPMs

on:
release:
types: [published]
push:
branches:
- '*'

jobs:
build_el7_rpm:
Expand All @@ -22,21 +23,21 @@ jobs:
https://api.github.com/repos/${{ github.repository }}/dispatches \
--data '{"event_type": "trigger-manpage-generation"}'
- name: Show File Modification
- name: Generate Manpages
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
chmod +x scripts/manpage_generation.sh
# Add debug output
echo "Debug: Before running the script, current directory contents:"
ls -la
# Run the manpage generation script
bash scripts/manpage_generation.sh
# Add more debug output
echo "Debug: After running the script, current directory contents:"
ls -la
- name: Build RPM package for EL7
id: rpm_build_el7
Expand Down

0 comments on commit 8476f24

Please sign in to comment.