Skip to content

Commit

Permalink
Sync project with template
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeNaccarato committed Mar 24, 2024
1 parent fcdde14 commit fbc4bd8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
_commit: 6373eb5
_commit: a283f46
_src_path: gh:blakeNaccarato/copier-python
actions_runner: ubuntu-22.04
active: true
Expand Down
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

Expand Down
7 changes: 4 additions & 3 deletions scripts/Sync-Template.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ Param(
[switch]$NoVerify
)
$template = 'submodules/template'
$template_exists = $template | Test-Path
if ( $Recopy -or (!$template_exists -and $Stay) ) {
$templateExists = $template | Test-Path
if (!$templateExists -and $Stay) { return }
if ($Recopy) {
if ($Prompt) { return copier recopy --overwrite }
return copier recopy --overwrite --defaults
}
if ($template | Test-Path) {
if ($templateExists) {
if (!$Stay) {
git submodule update --init --remote --merge $template
git add --all
Expand Down

0 comments on commit fbc4bd8

Please sign in to comment.