Skip to content

Commit

Permalink
replace tabs with spaces
Browse files Browse the repository at this point in the history
Signed-off-by: Charan-Sharan <[email protected]>
  • Loading branch information
Charan-Sharan committed Jul 18, 2024
1 parent 8849c9e commit 5a527bc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/Actions-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ jobs:
markdown=dir+'ActionFlow.md'
with open( markdown ,'a') as markdownFile:
markdownFile.write('# GitHub Actions Workflow Overview\n\n')
for file in workflowDetails:
uniqFileName=workflowDetails[file]['name']
uniqFileName=uniqFileName.replace(' ','_') #replace spaces with underscore
Expand Down Expand Up @@ -213,21 +214,22 @@ jobs:
markdownFile.write('\n```\n\n')
with open( markdown ,'a') as markdownFile:
markdownFile.write('```mermaid')
markdownFile.write('## GitHub Actions Trigger Overview\n')
markdownFile.write('\n```mermaid')
markdownFile.write('\nmindmap')
markdownFile.write('\n\t((HPCC Platform<br>GitHub Actions))')
markdownFile.write('\n ((HPCC Platform<br>GitHub Actions))')
# triggersList=['push','pull_request','workflow_dispatch','workflow_call','schedule']
triggersList=set()
for file in workflowDetails:
for trigger in workflowDetails[file]['trigger']:
triggersList.add(trigger) #triggersList contains unique list of all types of triggers used in the workflow file
for trigger in triggersList:
markdownFile.write(f'\n\t\t{trigger}(**{trigger}**)')
markdownFile.write(f'\n {trigger}(**{trigger}**)')
for file in workflowDetails:
if trigger in workflowDetails[file]['trigger']:
markdownFile.write(f'\n\t\t\t{file}')
markdownFile.write('\n```')
markdownFile.write(f'\n {file}')
markdownFile.write('\n```\n')
shell: python

- name: Upload Artifact
Expand Down

0 comments on commit 5a527bc

Please sign in to comment.