Skip to content

Commit

Permalink
Merge pull request #18 from Ali-YousefiTelori/develop
Browse files Browse the repository at this point in the history
fix format action
  • Loading branch information
Ali-YousefiTelori authored Jan 12, 2024
2 parents a952071 + a0cdcf3 commit 2db7fd4
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/dotnet-format-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,24 @@ jobs:
6.0.x
7.0.x
8.0.x
- name: Clone and run Authentication
run: |
git clone https://github.com/EasyMicroservices/Authentications-Microservice.git
cd Authentications-Microservice
dotnet run --project src/CSharp/EasyMicroservices.AuthenticationsMicroservice.WebApi/EasyMicroservices.AuthenticationsMicroservice.WebApi.csproj &
AUTH_PID=$!
echo "Started Authentication Service with PID $AUTH_PID"
cd ..
shell: bash
- name: Clone and run WhiteLabel
run: |
git clone https://github.com/EasyMicroservices/WhiteLabels-Microservice.git
cd WhiteLabels-Microservice
dotnet run --project src/CSharp/EasyMicroservices.WhiteLabelsMicroservice.WebApi/EasyMicroservices.WhiteLabelsMicroservice.WebApi.csproj &
WHITELABEL_PID=$!
echo "Started WhiteLabel Service with PID $WHITELABEL_PID"
cd ..
shell: bash
- name: Run dotnet format
id: format
uses: jfversluis/[email protected]
Expand All @@ -36,3 +54,10 @@ jobs:
ref: ${{ github.head_ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Cleanup
if: always()
run: echo "Shutting down Authentication Service with PID $AUTH_PID"
kill $AUTH_PID echo "Authentication Service shutdown failed"
echo "Shutting down WhiteLabel Service with PID $WHITELABEL_PID"
kill $WHITELABEL_PID echo "WhiteLabel Service shutdown failed"
1 change: 1 addition & 0 deletions Authentications-Microservice
Submodule Authentications-Microservice added at 1a7aba
1 change: 1 addition & 0 deletions WhiteLabels-Microservice
Submodule WhiteLabels-Microservice added at 062fbb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static async Task Main(string[] args)
var build = await app.BuildWithUseCors<IdentityContext>((options) =>
{
AddCors(options,
"adahmsay.ir",
"adahmsay.ir",
"appgenadmin.adahmsay.ir",
"contractgenerator.ir",
"appgenadmin.contractgenerator.ir",
Expand Down

0 comments on commit 2db7fd4

Please sign in to comment.