Closes #881
Previously, individual template classes were manually removing the .github directory, along with other CI-related services (e.g. .circleci, .tugboat, etc.). However, that meant our.github directory was also being removed.
This PR attempts to resolve this issue of theirs vs our .github directory:
after cloning our template repository, checks for the existence of a .github directory, and if present, renames to tmp.github
after pulling from the upstream, if a .github directory is reintroduced, deletes it
then if our tmp.github directory exists, renames it back to .github
This occurs during the update action, before the platformify action which allows us to preserve the all/common/.github and all/sourceop-auto-update/.github contents as the source of truth while also preserving additional workflow files from individual template repositories (e.g. .github/tests/vrt/* files)
This PR also removes the deletion of the .github directory from the following template classes:
Closes #881 Previously, individual template classes were manually removing the
.github
directory, along with other CI-related services (e.g..circleci
,.tugboat
, etc.). However, that meant our.github
directory was also being removed.This PR attempts to resolve this issue of theirs vs our
.github
directory:.github
directory, and if present, renames totmp.github
.github
directory is reintroduced, deletes ittmp.github
directory exists, renames it back to.github
This occurs during the
update
action, before theplatformify
action which allows us to preserve theall/common/.github
andall/sourceop-auto-update/.github
contents as the source of truth while also preserving additional workflow files from individual template repositories (e.g..github/tests/vrt/*
files)This PR also removes the deletion of the
.github
directory from the following template classes: