-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HPCC-31459 Generate GitHub Action chain diagram from action (.yml) files #18887
HPCC-31459 Generate GitHub Action chain diagram from action (.yml) files #18887
Conversation
af1d1c3
to
ce8d703
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add:
- condition for running only if action file changed
- execute as a workflow item
ce8d703
to
8849c9e
Compare
63914f7
to
c5212a3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is almost there, only a couple of questions, requests.
|
||
markdownFile.write('\n\n```\n\n') | ||
|
||
with open( markdown ,'a') as markdownFile: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you reopen the markdown file? It is already opened in line 181.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good.
efd9646
to
bc3041f
Compare
bc3041f
to
b2f0958
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving
markdownFile.write(f'\n {trigger} ---> {file}[\"{workflowDetails[file]["name"]}[{file}]\"]') | ||
markdownFile.write('\n end\n') | ||
markdownFile.write('\n```\n') | ||
shell: python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for cleanliness, can we move this above the run: without breaking anything? Other than that, everything looks great.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is possible to move it above run:
Signed-off-by: Charan-Sharan <[email protected]>
b2f0958
to
2cf04a0
Compare
@ghalliday could you please merge this PR? |
HPCC-31459 Generate GitHub Action chain diagram from action (.yml) files
This Action workflow generates a markdown file that contains useful graphs that give a brief overview of all the GitHub Actions Workflows.
Type of change:
Checklist:
Smoketest:
Testing: