Skip to content

Commit

Permalink
Revert to passing ApiBaseUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
jackreimers committed Aug 23, 2023
1 parent 1a9c969 commit 7ec9050
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/build-deploy-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,7 @@ jobs:
runs-on: ubuntu-latest
environment: ${{ github.event.inputs['EnvironmentName'] }}

steps:
- name: Output Variables
run: |
echo ${{ github.event.inputs['EnvironmentName'] }}
echo ${{ github.event.inputs['ApiBaseUrl'] }}
steps:
- uses: actions/checkout@v3.3.0

- name: Set up .NET Core
Expand All @@ -52,7 +47,7 @@ jobs:
with:
files: './src/WebUI/wwwroot/appsettings.json'
env:
ApiBaseUrl: ${{ vars.ApiBaseUrl }}
ApiBaseUrl: ${{ github.event.inputs['ApiBaseUrl'] }}

- name: Build with dotnet
run: dotnet build --configuration Release
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ssw-rulesgpt-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ on:
- main
workflow_dispatch:

jobs:
jobs:
call-reusable-build-and-deploy:
uses: ./.github/workflows/build-deploy-reusable.yml
with:
EnvironmentName: 'Staging'
AzureWebAppName: 'ssw-rulesgpt-api-stage'
ApiBaseUrl: ${{ vars.ApiBaseUrl }}
ApiBaseUrl: ${{ vars.API_BASE_URL }}

secrets:
AzureWebAppSecret: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_706C909B7DCB4379927A9D3AF3D8B5EF }}
Expand Down

0 comments on commit 7ec9050

Please sign in to comment.