From e84380328942bee3593a96b83584fec83827cdae Mon Sep 17 00:00:00 2001 From: bZverok <137277669+bZverok@users.noreply.github.com> Date: Tue, 16 Apr 2024 18:49:32 +0300 Subject: [PATCH] Categories (#16) * CI: update pipeline to include dispatch event * CI: invoke Dev workflow once manually triggered * added categories * formatting * Update Apps.XTM.csproj --------- Co-authored-by: Ihor Kriatov --- .github/workflows/ci.yaml | 3 ++- Apps.XTM/Apps.XTM.csproj | 27 +++++++++++++-------------- Apps.XTM/XTMApplication.cs | 9 ++++++++- 3 files changed, 23 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 385b667..57cc22d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,13 +6,14 @@ on: push: branches: - develop + workflow_dispatch: jobs: trigger-workflow: runs-on: ubuntu-latest steps: - name: Invoke Dev Workflow - if: github.event_name == 'push' && github.ref == 'refs/heads/develop' + if: github.event_name == 'push' && (github.ref == 'refs/heads/develop' || github.event.inputs.manual_trigger == 'true') uses: benc-uk/workflow-dispatch@v1 with: workflow: ${{ vars.GH_BUILD_WORKFLOW }} diff --git a/Apps.XTM/Apps.XTM.csproj b/Apps.XTM/Apps.XTM.csproj index 1536bfe..d663aa5 100644 --- a/Apps.XTM/Apps.XTM.csproj +++ b/Apps.XTM/Apps.XTM.csproj @@ -4,25 +4,24 @@ enable enable XTM - 3.1.4 + 3.1.5 Translation management system that centralizes localization assets and enables fast, accurate translation and deployment of content tailored to any audience in any territory Apps.XTM - 11 + 12 - - - - - - - - + + + + + + + + + + - - - - + diff --git a/Apps.XTM/XTMApplication.cs b/Apps.XTM/XTMApplication.cs index 3b136c7..c75ac11 100644 --- a/Apps.XTM/XTMApplication.cs +++ b/Apps.XTM/XTMApplication.cs @@ -1,12 +1,19 @@ using Blackbird.Applications.Sdk.Common; +using Blackbird.Applications.Sdk.Common.Metadata; namespace Apps.XTM; -public class XTMApplication : IApplication +public class XTMApplication : IApplication, ICategoryProvider { private string _name; private readonly Dictionary _typesInstances; + public IEnumerable Categories + { + get => [ApplicationCategory.CatAndTms]; + set { } + } + public XTMApplication() { _name = "XTM";