Skip to content

Commit

Permalink
Release workflows (#418)
Browse files Browse the repository at this point in the history
* Release Workflows

Signed-off-by: jamshale <jamiehalebc@gmail.com>

---------

Signed-off-by: jamshale <jamiehalebc@gmail.com>
  • Loading branch information
jamshale authored May 7, 2024
1 parent afc9111 commit d957b01
Show file tree
Hide file tree
Showing 31 changed files with 3,742 additions and 510 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ReleaseWorkflows.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
The following is a flowchart of the release workflows...

```mermaid
---
title: Create Release PR Workflow
---
flowchart TB
Start[Create Release PR] --> ManualDispatch{Manual Dispatch}
Start --> OnSchedule[On Schedule - Once a day]
ManualDispatch --> GetACAPYRelease[Get latest ACA-PY Release via PIP]
ManualDispatch --> |Re-Release|UpdateGlobal
OnSchedule --> GetACAPYRelease
GetACAPYRelease --> CheckGlobal[Get Global Repo Version]
CheckGlobal --> Compare{Compare versions}
Compare --> |Match| End
Compare --> |No Match| UpdateGlobal[Update Global Repo Version]
UpdateGlobal --> UpdateAllPlugins[Update All Plugins]
UpdateAllPlugins --> RunLintChecks[Run Lint Checks]
RunLintChecks --> RunUnitTests[Run Unit Tests]
RunUnitTests --> RunIntegrationTests[Run Integration Tests]
RunIntegrationTests --> RemoveFailedPlugins[Remove Failed Plugins From Change Set]
RemoveFailedPlugins --> CreateReleaseNotes[Create Release Notes]
CreateReleaseNotes --> CreateReleasePR[Create Release PR]
```

```mermaid
---
title: Create Release Workflow
---
flowchart TB
Start[Create Release] --> OnPushMain[On Push to Main]
OnPushMain --> ChangedPoetryFiles{Changed poetry.lock Files?}
ChangedPoetryFiles --> |No| End
ChangedPoetryFiles --> |Yes| ConfigureGit[Configure Git]
ConfigureGit --> GetReleaseTags[Get Release Tags - Based on ACA-PY Version]
GetReleaseTags --> TagsExist{Tags Exist}
TagsExist --> |Yes| IncrementPatch[Increment Patch Version. Ex: 1.0.0 -> 1.0.0.1 or 1.0.0.1 -> 1.0.0.2]
TagsExist --> |No| CreateTagOnACAPYVersion[Create Tag on ACA-PY Version]
IncrementPatch --> GetReleaseNotes[Get Release Notes and Plugins That Updated]
CreateTagOnACAPYVersion --> GetReleaseNotes
GetReleaseNotes --> CreateRelease[Create Release]
```
Loading

0 comments on commit d957b01

Please sign in to comment.