fix #129
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: update-releases | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
- cron: '0 17 * * MON' # 5PM Monday UTC (10AM Monday PST) - Set to 2hrs after react-native-windows publish starts | |
jobs: | |
check-bats-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # fetch all branches etc | |
submodules: false | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '18' | |
# Clean up some unneeded disk hogs | |
# - run: | | |
# $path = "$Env:Programfiles" | |
# $colItems = Get-ChildItem $path | Where-Object {$_.PSIsContainer -eq $true} | Sort-Object | |
# foreach ($i in $colItems) | |
# { | |
# $subFolderItems = Get-ChildItem $i.FullName -recurse -force | Where-Object {$_.PSIsContainer -eq $false} | Measure-Object -property Length -sum | Select-Object Sum | |
# $i.FullName + " -- " + "{0:N2}" -f ($subFolderItems.sum / 1MB) + " MB" | |
# } | |
- run: Remove-Item "$Env:Programfiles\Azure Cosmos DB Emulator" -Recurse -Force -ErrorAction SilentlyContinue -ErrorVariable err | |
- run: Write-Host $err | |
- run: Remove-Item "$Env:Programfiles\LLVM" -Recurse -Force -ErrorAction SilentlyContinue -ErrorVariable err | |
- run: Write-Host $err | |
# - run: | | |
# $path = "$Env:Programfiles" | |
# $colItems = Get-ChildItem $path | Where-Object {$_.PSIsContainer -eq $true} | Sort-Object | |
# foreach ($i in $colItems) | |
# { | |
# $subFolderItems = Get-ChildItem $i.FullName -recurse -force | Where-Object {$_.PSIsContainer -eq $false} | Measure-Object -property Length -sum | Select-Object Sum | |
# $i.FullName + " -- " + "{0:N2}" -f ($subFolderItems.sum / 1MB) + " MB" | |
# } | |
- run: git config --global user.email "[email protected]" | |
- run: git config --global user.name "Andrew Coates" | |
- run: npm install semver | |
- run: node generate-all.js onlyOne | |
- run: git add RELEASES | |
- run: git commit -m "Update RELEASES" | |
- run: git push | |
check-bats-mac: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # fetch all branches etc | |
submodules: false | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '18' | |
# Clean up some unneeded disk hogs | |
- run: Remove-Item "$Env:Programfiles\Azure Cosmos DB Emulator" -Recurse -Force -ErrorAction SilentlyContinue -ErrorVariable err | |
- run: Write-Host $err | |
- run: Remove-Item "$Env:Programfiles\LLVM" -Recurse -Force -ErrorAction SilentlyContinue -ErrorVariable err | |
- run: Write-Host $err | |
- run: git config --global user.email "[email protected]" | |
- run: git config --global user.name "Andrew Coates" | |
- run: npm install semver | |
- run: node generate-all-mac.js onlyOne | |
- run: git add RELEASES_MAC | |
- run: git commit -m "Update RELEASES_MAC" | |
- run: git push |