↩️ Undo Release Cut - dvsa/des-workflow-actions GitHub Wiki

Description

This workflow makes it possible to undo the creation of a release branch and/or release tag within a 24 hour period. This may be necessary when information was input incorrectly, or release plans were changed. There are checks that take place in addition to the 24 hour check to ensure that no branches are deleted that contain multiple releases, and that the release tag to be deleted is the most recent one.

Workflow Triggers

On Workflow Call

This workflow is called from the des-devops repository.

Environment Variables

Name Description
GH_TOKEN The GitHub token used for authentication

Inputs

Name Description Options
branch-to-delete The name of the release branch to delete N/A
tag-to-delete The name of the release tag to delete N/A
delete-release-branch Whether to delete the release branch true | false
delete-release-tag Whether to delete the release tag true | false
release-type What repositories to perform actions on frontend | backend | full

Notes

  • Does not override branch protection rule, so it may not be possible to delete branches in some repositories

[!IMPORTANT] When updating the repositories.json secret to add an additional repository, do not replace the first object in the corresponding component array (frontend/backend) as the release tag & branch history is pulled from the first object in the component array.