Skip to content

Commit aa76246

Browse files
authored
feat(m365): output to storage in a dated directory yyyy/MM/dd (#15)
fix: fix gh actions not triggering with branches with '/'
1 parent 4b4c379 commit aa76246

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/m365_image_build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
schedule:
55
- cron: '16 11 * * 1'
66
push:
7-
branches: [ "*" ]
7+
branches: [ "**" ]
88
# Publish semver tags as releases.
99
tags: [ 'v*.*.*' ]
1010
pull_request:

.github/workflows/terraform_scan.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ permissions:
33
security-events: write
44
on:
55
push:
6-
branches: [ "*" ]
6+
branches: [ "**" ]
77
pull_request:
88
branches: [ "main" ]
99
jobs:

m365/image/run_container.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ Foreach ($tenantConfig in $(Get-ChildItem 'input\')) {
9090
$JsonResults | ConvertTo-Json -Compress -Depth 100 | Out-File -Encoding UTF8 $ResultsFile.FullName
9191

9292
Write-Output " Starting Upload"
93-
$OutPath = "$($Env:REPORT_OUTPUT)/$($ResultsFile.Name)"
93+
$DatePath = Get-Date -Format "yyyy/MM/dd"
94+
$OutPath = "$($Env:REPORT_OUTPUT)/$($DatePath)/$($ResultsFile.Name)"
9495
if ($null -ne $Env:REPORT_SAS) {
9596
$OutPath += "?$($Env:REPORT_SAS)"
9697
}

0 commit comments

Comments
 (0)