Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Be more atomic in our operations with example repos #86

@myitcv

Description

@myitcv

At the moment we follow this sort of pattern at the start of an example:

now=$(date +'%Y%m%d%H%M%S_%N')
githubcli repo renameIfExists $GITHUB_ORG/$r ${r}_$now
githubcli repo transfer $GITHUB_ORG/${r}_$now $GITHUB_ORG_ARCHIVE
githubcli repo create $GITHUB_ORG/$r

But this means that for the entire of the regen of the example we are "missing" the real repo.

Instead we should switch to doing renames and transfers at the end of the example which will minimise downtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions