Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ahernandez411 committed Feb 5, 2024
1 parent 3167f13 commit 0e60e5f
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/test-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,38 +43,37 @@ jobs:
run: |
import os
import sys
print("#########################################")
print("Verifying Actions Documentation")
print("#########################################")
file_workflows = "WORKFLOWS.md"
find_build_and_review_pr = "Build and Review PR"
find_incrememt_version_on_merge = "Increment Version on Merge"
find_test_action_workflow_documenter = "Test Action Workflow Documenter"
finds = [
find_build_and_review_pr,
find_incrememt_version_on_merge,
find_test_action_workflow_documenter
"Build and Review PR",
"Increment Version on Merge",
"Test Action Workflow Documenter"
]
if not os.path.exists(file_workflows):
raise Exception(f"File {file_workflows} does not exist")
print(f"File '{file_workflows}' does not exist")
sys.exit(1)
else:
print(f"Found {file_workflows}")
print(f"Found '{file_workflows}'")
not_founds = []
print(f"Look for specific strings in {file_workflows}")
print(f"Look for specific strings in '{file_workflows}'...")
with open(file_workflows, "r") as reader:
contents = reader.read()
for find in finds:
if find not in contents:
print(f"ERROR: Could not find '{find}' in '{file_workflows}'")
not_founds.append(find)
else:
print(f"Found {find} in {file_workflows}")
print(f"Found '{find}' in '{file_workflows}'")
if len(not_founds) > 0:
print(f"Could not find the following workflows: {not_founds}")
sys.exit(1)
print("DONE!")
Expand Down

0 comments on commit 0e60e5f

Please sign in to comment.