From 8485b5a60eaff73e1187e29aeb2f20790663d602 Mon Sep 17 00:00:00 2001 From: Tom Stovall <119924+stovak@users.noreply.github.com> Date: Tue, 18 Jun 2024 14:26:25 -0700 Subject: [PATCH] Mermaid diagram (#21) --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index 9de96c8..2a615f4 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,30 @@ steps: Please note that in order to run commands that require SSH (e.g. drush or wp-cli), you will need to setup a SSH key. There are plenty of options available in the [Github Actions Marketplace](https://github.com/marketplace?type=actions&query=ssh+key+). We recommend you to choose one of them and use them in your pipeline. +## Diagram + +```mermaid +graph TD + +subgraph Setup Terminus GitHub Action + A[Start] --> B{inputs.terminus-version} + B --> |Yes| C[Set TERMINUS_RELEASE to inputs.terminus-version] + B --> |No| D[Get latest Terminus release from GitHub API] + D --> E[Set TERMINUS_RELEASE to latest version] + C --> F[Install Terminus] + E --> F + F --> G[Cache Terminus Directory] + G --> H{inputs.pantheon-machine-token} + H --> |Yes| I[Login to Pantheon] + H --> |No| J[End] + I --> J +end + +style A fill:#f9f,stroke:#333,stroke-width:2px; +style J fill:#f9f,stroke:#333,stroke-width:2px; + +``` + ## Credits Big thanks to Gareth Jones and Ackama for the initial development work.