From 26130a5366cb21bf85dbc40f6c07676d23628357 Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Wed, 4 Dec 2024 01:15:25 +0900 Subject: [PATCH] chore: disable gen --- .github/workflows/azure-deploy.yml | 60 +++++++++++++++--------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/workflows/azure-deploy.yml b/.github/workflows/azure-deploy.yml index a45566d..a087d30 100644 --- a/.github/workflows/azure-deploy.yml +++ b/.github/workflows/azure-deploy.yml @@ -38,36 +38,36 @@ jobs: bun install --frozen-lockfile --production popd - - name: Generate local.settings.json - env: - GITHUB_SECRETS: ${{ toJson(secrets) }} - shell: pwsh - run: | - $secretsJson = $env:GITHUB_SECRETS | ConvertFrom-Json - $settingsObject = @{ - IsEncrypted = $false - Values = @{} - } - - # Exclude specific GitHub-related secrets - $excludedPrefixes = @("GITHUB_", "ACTIONS_", "AZUREAPPSERVICE_") - - foreach ($secretName in $secretsJson.PSObject.Properties.Name) { - $include = $true - foreach ($prefix in $excludedPrefixes) { - if ($secretName -like "$prefix*") { - $include = $false - break - } - } - - if ($include) { - $settingsObject.Values[$secretName] = $secretsJson.$secretName - } - } - - $settingsJson = $settingsObject | ConvertTo-Json -Depth 10 - Set-Content -Path 'local.settings.json' -Value $settingsJson +# - name: Generate local.settings.json +# env: +# GITHUB_SECRETS: ${{ toJson(secrets) }} +# shell: pwsh +# run: | +# $secretsJson = $env:GITHUB_SECRETS | ConvertFrom-Json +# $settingsObject = @{ +# IsEncrypted = $false +# Values = @{} +# } +# +# # Exclude specific GitHub-related secrets +# $excludedPrefixes = @("GITHUB_", "ACTIONS_", "AZUREAPPSERVICE_") +# +# foreach ($secretName in $secretsJson.PSObject.Properties.Name) { +# $include = $true +# foreach ($prefix in $excludedPrefixes) { +# if ($secretName -like "$prefix*") { +# $include = $false +# break +# } +# } +# +# if ($include) { +# $settingsObject.Values[$secretName] = $secretsJson.$secretName +# } +# } +# +# $settingsJson = $settingsObject | ConvertTo-Json -Depth 10 +# Set-Content -Path 'local.settings.json' -Value $settingsJson - name: Upload artifact for deployment job uses: actions/upload-artifact@v4