From d209f355060364d80a8c5838ae61862df9e6296a Mon Sep 17 00:00:00 2001 From: Muqimjon Mamadaliyev Date: Thu, 1 Feb 2024 11:20:04 +0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20Updated=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pre-production.yml | 4 ++-- .github/workflows/production.yml | 2 +- .../BotUpdateHandler.SendApplication.cs | 24 ++++++++++++------- .../Resources/BotLocalizer.uz.resx | 16 +++++++++---- 4 files changed, 31 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pre-production.yml b/.github/workflows/pre-production.yml index f602f18..5ed438a 100644 --- a/.github/workflows/pre-production.yml +++ b/.github/workflows/pre-production.yml @@ -22,7 +22,7 @@ jobs: build-bot: - + name: Build frontend runs-on: ubuntu-latest steps: @@ -36,4 +36,4 @@ jobs: - name: Build run: dotnet build --no-restore - name: Test - run: dotnet test --no-build --verbosity normal \ No newline at end of file + run: dotnet build --configuration Release --output out --verbosity normal /src/frontend/EcoLink.Bot \ No newline at end of file diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 3505384..1c55430 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -41,7 +41,7 @@ jobs: echo $DOCKER_PASSWORD | docker login --username $DOCKER_USERNAME --password-stdin - name: Build and push run: | - docker build --tag $DOCKER_USERNAME/$PROJECT-bot --file ./src/backend/EcoLink.WebApi/Dockerfile . + docker build --tag $DOCKER_USERNAME/$PROJECT-api --file ./src/backend/EcoLink.WebApi/Dockerfile . docker push $DOCKER_USERNAME/$PROJECT-api build-bot: diff --git a/src/frontend/EcoLink.Bot/BotServices/Senders/BotUpdateHandler.SendApplication.cs b/src/frontend/EcoLink.Bot/BotServices/Senders/BotUpdateHandler.SendApplication.cs index 9617fe7..0db7d20 100644 --- a/src/frontend/EcoLink.Bot/BotServices/Senders/BotUpdateHandler.SendApplication.cs +++ b/src/frontend/EcoLink.Bot/BotServices/Senders/BotUpdateHandler.SendApplication.cs @@ -370,7 +370,8 @@ private string GetApplicationInForm() user.RequiredFunding, user.AssetsInvested, user.Phone, - user.Email], + user.Email, + user.Profession], UserProfession.Investor => localizer["txtApplicationInvestment", user.FirstName, user.LastName, @@ -379,7 +380,8 @@ private string GetApplicationInForm() user.Sector, user.InvestmentAmount, user.Phone, - user.Email], + user.Email, + user.Profession], UserProfession.Representative => localizer["txtApplicationRepresentation", user.FirstName, user.LastName, @@ -392,7 +394,8 @@ private string GetApplicationInForm() user.Expectation, user.Purpose, user.Phone, - user.Email], + user.Email, + user.Profession], UserProfession.ProjectManager => localizer["txtApplicationProjectManagement", user.FirstName, user.LastName, @@ -405,7 +408,8 @@ private string GetApplicationInForm() user.Expectation, user.Purpose, user.Phone, - user.Email], + user.Email, + user.Profession], _ => string.Empty, }; } @@ -423,7 +427,8 @@ private string GetApplicationInForm(ProjectManagementAppDto dto) dto.Expectation, dto.Purpose, dto.Phone, - dto.Email]; + dto.Email, + user.Profession]; private string GetApplicationInForm(EntrepreneurshipAppDto dto) => localizer["txtApplicationEntrepreneurship", @@ -437,7 +442,8 @@ private string GetApplicationInForm(EntrepreneurshipAppDto dto) dto.RequiredFunding, dto.AssetsInvested, dto.Phone, - dto.Email]; + dto.Email, + user.Profession]; private string GetApplicationInForm(InvestmentAppDto dto) => localizer["txtApplicationInvestment", @@ -448,7 +454,8 @@ private string GetApplicationInForm(InvestmentAppDto dto) dto.Sector, dto.InvestmentAmount, dto.Phone, - dto.Email]; + dto.Email, + user.Profession]; private string GetApplicationInForm(RepresentationAppDto dto) => localizer["txtApplicationRepresentation", @@ -463,5 +470,6 @@ private string GetApplicationInForm(RepresentationAppDto dto) dto.Expectation, dto.Purpose, dto.Phone, - dto.Email]; + dto.Email, + user.Profession]; } diff --git a/src/frontend/EcoLink.Bot/Resources/BotLocalizer.uz.resx b/src/frontend/EcoLink.Bot/Resources/BotLocalizer.uz.resx index 86db6f2..14b0e9d 100644 --- a/src/frontend/EcoLink.Bot/Resources/BotLocalizer.uz.resx +++ b/src/frontend/EcoLink.Bot/Resources/BotLocalizer.uz.resx @@ -292,7 +292,9 @@ Tikiladigan aktiv: Telefon raqami: ↳ {9} Email: -↳ {10} +↳ {10} + +Ariza yo'nalishi: {11} Tayyor Arizani tasdiqlash uchun foydalanuvchiga to'liq holda taqdim qilish uchun tadbirkor ma'lumotlari @@ -311,7 +313,9 @@ Yordam: Telefon raqami: ↳ {6} Email: -↳ {7} +↳ {7} + +Ariza yo'nalishi: {8} Tayyor Arizani tasdiqlash uchun foydalanuvchiga to'liq holda taqdim qilish uchun investor ma'lumotlari @@ -338,7 +342,9 @@ Vakil bo'lishdan maqsad: Telefon raqami: ↳ {10} Email: -↳ {11} +↳ {11} + +Ariza yo'nalishi: {12} Ism: @@ -364,7 +370,9 @@ Vakil bo'lishdan maqsad: Telefon raqami: ↳ {10} Email: -↳ {11} +↳ {11} + +Ariza yo'nalishi: {12} O'xbekiston Iqtisodiyot Assambleyasi tashkilotining rivoji uchun yana qanday ishlar qilishimiz mumkinligi haqida o'z fikringizni qoldiring. Bu biz uchun juda muhim!