Skip to content

Commit

Permalink
fix: 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasAugustin committed Mar 10, 2024
1 parent 507572a commit 08eb894
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sync_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,8 @@ function restore_templatesyncignore_file() {
info "restore the ignore file"
local template_sync_ignore_file_path=$1
if [ -s "${template_sync_ignore_file_path}" ]; then
echo "::group::restore ignore file"
git reset "${template_sync_ignore_file_path}"
git checkout -- "${template_sync_ignore_file_path}" || warn "not able to checkout the former .templatesyncignore file. Most likely the file was not present"
echo "::endgroup::"
fi
}

Expand Down Expand Up @@ -366,7 +364,7 @@ function commit() {

function push_prepare_pr_create_pr() {
info "push_prepare_pr_create_pr"
if [ "$IS_DRY_RUN" != "true" ]; then
if [ "$IS_DRY_RUN" == "true" ]; then
warn "dry_run option is set to on. skipping labels check, cleanup older PRs, push and create pr"
return 0
fi
Expand Down

0 comments on commit 08eb894

Please sign in to comment.