Skip to content

Commit

Permalink
Update GHA workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
justinyoo committed Nov 27, 2023
1 parent 4303785 commit fcbfeb3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/azure-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions/checkout@v4

- name: Login to Azure
# if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
uses: azure/login@v1
with:
tenant-id: ${{ vars.AZURE_TENANT_ID }}
Expand All @@ -34,14 +34,14 @@ jobs:
# uses: Azure/[email protected]

- name: Install Azure Developer CLI (nightly build)
# if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
shell: pwsh
run: |
Invoke-RestMethod 'https://aka.ms/install-azd.ps1' -OutFile ./install-azd.ps1
./install-azd.ps1 -Version daily
- name: Login to Azure Developer CLI
# if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
shell: pwsh
run: |
azd auth login `
Expand All @@ -50,7 +50,7 @@ jobs:
--federated-credential-provider "${{ vars.AZD_PIPELINE_PROVIDER }}"
- name: Setup environment
# if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
shell: pwsh
run: |
# Create config.json under .azure
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
$dotenv | Out-File -Path ./.azure/${{ vars.AZURE_ENV_NAME }}/.env -Force
- name: Update appsettings.json
# if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
shell: pwsh
run: |
$resourceName = az resource list -g rg-${{ vars.AZURE_ENV_NAME }} --query "[?type=='Microsoft.CognitiveServices/accounts'].name" -o tsv
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
dotnet test
- name: Deploy to Azure Container Apps
# if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
shell: pwsh
run: |
azd deploy

0 comments on commit fcbfeb3

Please sign in to comment.