Skip to content

Commit

Permalink
Changed where the check for the manpage is
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-ang9 committed Nov 21, 2023
1 parent 4ce6f42 commit 9536e19
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/generate_manpage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,3 @@ jobs:
run: |
chmod +x scripts/manpage_generation.sh
bash scripts/manpage_generation.sh
- 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
git diff --exit-code origin/main $FILE_PATH || {
echo "Changes detected in $FILE_PATH. Printing diff:"
git diff origin/main $FILE_PATH
exit 0
}
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,20 @@ jobs:
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
git diff --exit-code origin/main $FILE_PATH || {
echo "Changes detected in $FILE_PATH. Printing diff:"
git diff origin/main $FILE_PATH
exit 0
}
- name: Build RPM package for EL7
id: rpm_build_el7
Expand Down

0 comments on commit 9536e19

Please sign in to comment.