From c7866b26c4e2e778ba9fc09668561b28bc015d3e Mon Sep 17 00:00:00 2001 From: Bliss Pisit Wetcha Date: Wed, 30 Aug 2023 18:31:56 +0700 Subject: [PATCH] [#495] Remove template workflows when using template --- .../automatic_pull_request_review.yml | 0 .../deploy_app_store.yml | 0 .../deploy_production_firebase.yml | 0 .../deploy_staging_firebase.yml | 0 .../draft_a_new_release.yml | 0 .../publish_docs_to_wiki.yml | 19 +++++++++++++++++++ .../iOSTemplateMaker/SetUpCICDService.swift | 2 ++ 7 files changed, 21 insertions(+) rename .github/{workflows => project_workflows}/automatic_pull_request_review.yml (100%) rename .github/{workflows => project_workflows}/deploy_app_store.yml (100%) rename .github/{workflows => project_workflows}/deploy_production_firebase.yml (100%) rename .github/{workflows => project_workflows}/deploy_staging_firebase.yml (100%) rename .github/{workflows => project_workflows}/draft_a_new_release.yml (100%) create mode 100644 .github/project_workflows/publish_docs_to_wiki.yml diff --git a/.github/workflows/automatic_pull_request_review.yml b/.github/project_workflows/automatic_pull_request_review.yml similarity index 100% rename from .github/workflows/automatic_pull_request_review.yml rename to .github/project_workflows/automatic_pull_request_review.yml diff --git a/.github/workflows/deploy_app_store.yml b/.github/project_workflows/deploy_app_store.yml similarity index 100% rename from .github/workflows/deploy_app_store.yml rename to .github/project_workflows/deploy_app_store.yml diff --git a/.github/workflows/deploy_production_firebase.yml b/.github/project_workflows/deploy_production_firebase.yml similarity index 100% rename from .github/workflows/deploy_production_firebase.yml rename to .github/project_workflows/deploy_production_firebase.yml diff --git a/.github/workflows/deploy_staging_firebase.yml b/.github/project_workflows/deploy_staging_firebase.yml similarity index 100% rename from .github/workflows/deploy_staging_firebase.yml rename to .github/project_workflows/deploy_staging_firebase.yml diff --git a/.github/workflows/draft_a_new_release.yml b/.github/project_workflows/draft_a_new_release.yml similarity index 100% rename from .github/workflows/draft_a_new_release.yml rename to .github/project_workflows/draft_a_new_release.yml diff --git a/.github/project_workflows/publish_docs_to_wiki.yml b/.github/project_workflows/publish_docs_to_wiki.yml new file mode 100644 index 00000000..dc71b021 --- /dev/null +++ b/.github/project_workflows/publish_docs_to_wiki.yml @@ -0,0 +1,19 @@ +name: Publish docs to Wiki + +on: + push: + paths: + - .github/wiki/** + branches: + - main + - master + +jobs: + publish_docs_to_wiki: + name: Publish Wiki + uses: nimblehq/github-actions-workflows/.github/workflows/publish_wiki.yml@0.1.0 + with: + USER_NAME: team-nimblehq + USER_EMAIL: dev@nimblehq.co + secrets: + USER_TOKEN: ${{ secrets.NIMBLE_DEV_TOKEN }} diff --git a/Scripts/Swift/iOSTemplateMaker/Sources/iOSTemplateMaker/SetUpCICDService.swift b/Scripts/Swift/iOSTemplateMaker/Sources/iOSTemplateMaker/SetUpCICDService.swift index a126355c..492e886d 100644 --- a/Scripts/Swift/iOSTemplateMaker/Sources/iOSTemplateMaker/SetUpCICDService.swift +++ b/Scripts/Swift/iOSTemplateMaker/Sources/iOSTemplateMaker/SetUpCICDService.swift @@ -36,6 +36,8 @@ struct SetUpCICDService { print("Setting template for Github Actions") fileManager.removeItems(in: "bitrise.yml") fileManager.removeItems(in: "codemagic.yaml") + fileManager.removeItems(in: ".github/workflows") + fileManager.moveFiles(in: ".github/project_workflows", to: ".github/workflows") case .bitrise: print("Setting template for Bitrise") fileManager.removeItems(in: "codemagic.yaml")