GitHub Markdown can render Mermaid diagrams including Mermaid Gantt charts. I discovered this from Simon Willison who shared Bryce Mecum’s post on using Mermaid Gantt diagrams to display traces.
A Gantt diagram can be created and rendered within a code block tagged mermaid, a simple example copied from the docs can be seen below.
gantt title A Gantt Diagram dateFormat YYYY-MM-DD section Section A task :a1, 2014-01-01, 30d Another task :after a1, 20d I previously used MarkWhen’s Meridiem online editor to create Gantt charts to visualise the service life on Dutch Sprinter trains, this required me to share screenshots of the chart unless I created a view-only copy. Using GitHub I can share a gist with the details of the chart, which others can then use or modify. The migration from MarkWhen to Mermaid isn’t perfect, but it’s a start.
Read more...
Github
Within a repository’s settings tab under Security you can set an Actions secrets and variables. A secret is encrypted and created for use with sensitive data whereas a variable is displayed as plain text. I intended to use a repository variable as an environment variable for a Python script within one of my workflows and the GitHub documentation was not very useful in describing how to accomplish that.
Thanks to mbaum0 on this discussion thread I learned that you can access variables with the vars context.1 Using vars I can then set the variable within the environment of the workflow to be used by the Python script. In the example below I have set USERNAME as an Action variable and then set it as an environment variable within the workflow.
Read more...
Disclaimer: Do not take the information here as a good or best practice. The purpose of this site is to post my learnings in somewhat real time.
Create an OIDC IdP on AWS This needs to be done once for an AWS account, this configures the trust between AWS and GitHub through OIDC.
Read more...