Skip to content

Update set-keys.yml

Update set-keys.yml #2

Workflow file for this run

name: 2 Create and Set Keys
on: workflow_dispatch
env:
AZURE_REGION: eastus
AZURE_RG: oa-poc-rg
APP_CONFIGURATION_NAME: oaappconfig02
MESSAGE: "OA was here. V1.0\"

Check failure on line 9 in .github/workflows/set-keys.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/set-keys.yml

Invalid workflow file

You have an error in your yaml syntax on line 9
jobs:
set-key-appconfig:
runs-on: ubuntu-latest
steps:
# Checkout code
- uses: actions/checkout@main
# Log into Azure
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Set Keys
uses: azure/CLI@v1
with:
inlineScript: |
az appconfig kv set -n ${{ env.APP_CONFIGURATION_NAME }} --key Pod2:Settings:BackgroundColor --value red --yes
az appconfig kv set -n ${{ env.APP_CONFIGURATION_NAME }} --key Pod2:Settings:FontColor --value white --yes
az appconfig kv set -n ${{ env.APP_CONFIGURATION_NAME }} --key Pod2:Settings:FontSize --value 20 --yes
az appconfig kv set -n ${{ env.APP_CONFIGURATION_NAME }} --key Pod1:Settings:Message --value \${{ env.MESSAGE }} --yes
az appconfig kv set -n ${{ env.APP_CONFIGURATION_NAME }} --key Pod1:Settings:Sentinel --value 2 --yes