Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable output in CI logs #359

Merged
merged 1 commit into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/azure-login-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- run: |
az account show
az account show --output none

- name: 'Az CLI login without subscription'
uses: azure/login@v1
Expand All @@ -47,7 +47,7 @@ jobs:
allow-no-subscriptions: true

- run: |
az account show
az account show --output none

- name: 'Az CLI login with subscription OIDC'
uses: azure/login@v1
Expand All @@ -57,7 +57,7 @@ jobs:
subscription-id: ${{ secrets.AZURE_SUBSCRIPTIONID }}

- run: |
az account show
az account show --output none

- name: 'Az CLI login without subscription OIDC'
uses: azure/login@v1
Expand All @@ -67,9 +67,7 @@ jobs:
allow-no-subscriptions: true

- run: |
az account show


az account show --output none

slack-post-result:
runs-on: ubuntu-latest
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/azure-login-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- run: |
az account show
# az webapp list
az account show --output none
az vm list --output none

- name: 'Az CLI login without subscription'
uses: azure/login@v1
Expand All @@ -29,7 +29,7 @@ jobs:
allow-no-subscriptions: true

- run: |
az account show
az account show --output none

- name: 'Azure PowerShell login with subscription'
uses: azure/login@v1
Expand All @@ -39,7 +39,7 @@ jobs:

- uses: azure/powershell@v1
with:
inlineScript: "Get-AzContext"
inlineScript: "(Get-AzContext).Environment.Name"
azPSVersion: "latest"

- name: 'Azure PowerShell login without subscription'
Expand All @@ -51,7 +51,7 @@ jobs:

- uses: azure/powershell@v1
with:
inlineScript: "Get-AzContext"
inlineScript: "(Get-AzContext).Environment.Name"
azPSVersion: "latest"

az-login-test-oidc:
Expand All @@ -66,8 +66,8 @@ jobs:
subscription-id: ${{ secrets.AZURE_SUBSCRIPTIONID }}

- run: |
az account show
# az webapp list
az account show --output none
az vm list --output none

- name: 'Az CLI login without subscription'
uses: azure/login@v1
Expand All @@ -77,7 +77,7 @@ jobs:
allow-no-subscriptions: true

- run: |
az account show
az account show --output none

- name: 'Azure PowerShell login with subscription'
uses: azure/login@v1
Expand All @@ -89,7 +89,7 @@ jobs:

- uses: azure/powershell@v1
with:
inlineScript: "Get-AzContext"
inlineScript: "(Get-AzContext).Environment.Name"
azPSVersion: "latest"

- name: 'Azure PowerShell login without subscription'
Expand All @@ -102,7 +102,7 @@ jobs:

- uses: azure/powershell@v1
with:
inlineScript: "Get-AzContext"
inlineScript: "(Get-AzContext).Environment.Name"
azPSVersion: "latest"

slack-post-result:
Expand Down
52 changes: 26 additions & 26 deletions .github/workflows/azure-login-negative.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:

- name: Run Azure Cli
run: |
az account show
az group show --name GitHubAction_CI_RG
az vm list
az account show --output none
az group show --name GitHubAction_CI_RG --output none
az vm list --output none

- name: Run Azure PowerShell
id: ps_1
Expand All @@ -48,9 +48,9 @@ jobs:
with:
azPSVersion: "latest"
inlineScript: |
Get-AzContext | Format-List
Get-AzResourceGroup -Name GitHubAction_CI_RG
Get-AzVM
(Get-AzContext).Environment.Name -eq 'AzureCloud'
(Get-AzResourceGroup -Name GitHubAction_CI_RG).ResourceGroupName -eq 'GitHubAction_CI_RG'
(Get-AzVM).Count -gt 0

- name: Check Last step failed
if: steps.ps_1.outcome == 'success'
Expand All @@ -71,7 +71,7 @@ jobs:

- name: Run Azure Cli again
run: |
az account show
az account show --output none

- name: Run Azure PowerShell again
id: ps_2
Expand All @@ -80,7 +80,7 @@ jobs:
with:
azPSVersion: "latest"
inlineScript: |
Get-AzContext | Format-List
(Get-AzContext).Environment.Name -eq 'AzureCloud'

- name: Check Last step failed
if: steps.ps_2.outcome == 'success'
Expand Down Expand Up @@ -124,9 +124,9 @@ jobs:
id: cli_3
continue-on-error: true
run: |
az account show
az group show --name GitHubAction_CI_RG
az vm list
az account show --output none
az group show --name GitHubAction_CI_RG --output none
az vm list --output none

- name: Check Last step failed
if: steps.cli_3.outcome == 'success'
Expand All @@ -142,9 +142,9 @@ jobs:
with:
azPSVersion: "latest"
inlineScript: |
Get-AzContext | Format-List
Get-AzResourceGroup -Name GitHubAction_CI_RG
Get-AzVM
(Get-AzContext).Environment.Name -eq 'AzureCloud'
(Get-AzResourceGroup -Name GitHubAction_CI_RG).ResourceGroupName -eq 'GitHubAction_CI_RG'
(Get-AzVM).Count -gt 0

- name: Check Last step failed
if: steps.ps_3.outcome == 'success'
Expand Down Expand Up @@ -259,9 +259,9 @@ jobs:

- name: Run Azure Cli
run: |
az account show
az group show --name GitHubAction_CI_RG
az vm list
az account show --output none
az group show --name GitHubAction_CI_RG --output none
az vm list --output none

- name: Run Azure PowerShell
id: ps_8
Expand All @@ -270,9 +270,9 @@ jobs:
with:
azPSVersion: "latest"
inlineScript: |
Get-AzContext | Format-List
Get-AzResourceGroup -Name GitHubAction_CI_RG
Get-AzVM
(Get-AzContext).Environment.Name -eq 'AzureCloud'
(Get-AzResourceGroup -Name GitHubAction_CI_RG).ResourceGroupName -eq 'GitHubAction_CI_RG'
(Get-AzVM).Count -gt 0

- name: Check Last step failed
if: steps.ps_8.outcome == 'success'
Expand All @@ -289,9 +289,9 @@ jobs:

- name: Run Azure Cli
run: |
az account show
az group show --name GitHubAction_CI_RG
az vm list
az account show --output none
az group show --name GitHubAction_CI_RG --output none
az vm list --output none

- name: Run Azure PowerShell
id: ps_9
Expand All @@ -300,9 +300,9 @@ jobs:
with:
azPSVersion: "latest"
inlineScript: |
Get-AzContext | Format-List
Get-AzResourceGroup -Name GitHubAction_CI_RG
Get-AzVM
(Get-AzContext).Environment.Name -eq 'AzureCloud'
(Get-AzResourceGroup -Name GitHubAction_CI_RG).ResourceGroupName -eq 'GitHubAction_CI_RG'
(Get-AzVM).Count -gt 0

- name: Check Last step failed
if: steps.ps_9.outcome == 'success'
Expand Down
Loading
Loading