From c23f8b9d3af18e75d0cf7474636ebb0d913e3d24 Mon Sep 17 00:00:00 2001 From: Jakub Chrzanowski Date: Thu, 25 Jun 2020 06:17:57 +0200 Subject: [PATCH] Extend GitHub Actions template-cleanup.yml workflow with ability to remove content marked with #REMOVE-IN-CLEANUP# --- .github/workflows/template-cleanup.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/template-cleanup.yml b/.github/workflows/template-cleanup.yml index 1c05761..a041755 100644 --- a/.github/workflows/template-cleanup.yml +++ b/.github/workflows/template-cleanup.yml @@ -43,6 +43,9 @@ jobs: find src -type f -exec sed -i "s/org.jetbrains.plugins.template/$GROUP/g" {} + find src -type f -exec sed -i "s/JetBrains/$ACTOR/g" {} + + # Remove lines marked with #REMOVE-IN-CLEANUP# + find . -type f -exec sed -i '/#REMOVE-IN-CLEANUP#/' + # Move content mkdir -p src/main/kotlin/${GROUP//.//} cp -R .github/template-cleanup/* .