From 852a1aece5fefac0a03f928672538c5d8c536ad8 Mon Sep 17 00:00:00 2001 From: Kevin Goslar Date: Tue, 1 Nov 2022 16:06:35 -0400 Subject: [PATCH] docs: add link to original to header of files (#171) --- scripts/sync.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/scripts/sync.sh b/scripts/sync.sh index 8021138..80afa7f 100755 --- a/scripts/sync.sh +++ b/scripts/sync.sh @@ -208,13 +208,13 @@ function copy_templates { local -r repo_path=$1 local -r repo_type=$2 rm -rf "$repo_path/.github/ISSUE_TEMPLATE/" - cp "templates/repository/common/CONTRIBUTING.md" "$repo_path/CONTRIBUTING.md" - cp "templates/repository/common/SECURITY.md" "$repo_path/SECURITY.md" - cp "templates/repository/common/LICENSE" "$repo_path/LICENSE" - cp "templates/repository/common/CODE_OF_CONDUCT.md" "$repo_path/CODE_OF_CONDUCT.md" - cp -n "templates/repository/common/.reference-ignore" "$repo_path/.reference-ignore" || true # copy only if it does not exist, as it is meant to help getting started - cp -r "templates/repository/common/.github" "$repo_path/" - cp -r "templates/repository/$repo_type/.github" "$repo_path/" + .bin/ory dev headers cp "templates/repository/common/CONTRIBUTING.md" "$repo_path/CONTRIBUTING.md" + .bin/ory dev headers cp "templates/repository/common/SECURITY.md" "$repo_path/SECURITY.md" + .bin/ory dev headers cp "templates/repository/common/LICENSE" "$repo_path/LICENSE" + .bin/ory dev headers cp "templates/repository/common/CODE_OF_CONDUCT.md" "$repo_path/CODE_OF_CONDUCT.md" + .bin/ory dev headers cp -n "templates/repository/common/.reference-ignore" "$repo_path/.reference-ignore" || true # copy only if it does not exist, as it is meant to help getting started + .bin/ory dev headers cp -r "templates/repository/common/.github" "$repo_path/" + .bin/ory dev headers cp -r "templates/repository/$repo_type/.github" "$repo_path/" } # creates a pull request with the changes on GitHub @@ -249,6 +249,7 @@ function install_dependencies_on_ci { header "INSTALLING DEPENDENCIES" sudo apt-get update -y sudo apt-get install -y moreutils gettext-base + curl https://raw.githubusercontent.com/ory/meta/master/install.sh | bash -s -- -b .bin ory v0.1.45 } # pushes the committed changes from the local Git client to GitHub