Skip to content

Commit

Permalink
fix azure-app-service-settings.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubakimoto committed May 6, 2024
1 parent bd9a122 commit 561fb0b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/azure-app-service-settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:
runs-on: ubuntu-latest
environment: Production
steps:
- name: Set current datetime as env variable
env:
TZ: 'Asia/Tokyo' # タイムゾーン指定
run: echo "CURRENT_DATETIME=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV
- name: Az CLI Login
uses: azure/login@v2
with:
Expand All @@ -24,7 +28,7 @@ jobs:
with:
app-name: ${{ secrets.AZURE_WEBAPP_NAME }}
slot-name: 'Production'
app-settings-json: '${{ vars.AZURE_WEBAPP_APP_SETTINGS }}'
app-settings-json: "${{ format(vars.AZURE_WEBAPP_APP_SETTINGS, env.CURRENT_DATETIME) }}"
general-settings-json: '${{ vars.AZURE_WEBAPP_GENERAL_SETTINGS }}'
- name: Az CLI Logout
run: az logout

0 comments on commit 561fb0b

Please sign in to comment.