Skip to content

Commit

Permalink
# Final validation check: Ensure all fields are valid
Browse files Browse the repository at this point in the history
  • Loading branch information
RONAK-AI647 committed Jan 7, 2025
1 parent 0a7ad0f commit 9b1991a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/check_pr_description.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,16 @@ def main():
# Set output variables for GitHub Actions
for field, valid in results.items():
print(f"contains{field.replace(' ', '')}={str(valid).lower()}")


# Final validation check: Ensure all fields are valid
if all(results.values()):
print("All required fields are properly filled.")
exit(0)
else:
print("Changelog section is missing or does not contain the required details.")
exit(1)

if __name__ == "__main__":
main()

0 comments on commit 9b1991a

Please sign in to comment.