Skip to content

Commit

Permalink
Update alz-pattern-update-policies.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
arjenhuitema authored Jul 19, 2024
1 parent c17b65b commit 7520263
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions .github/workflows/alz-pattern-update-policies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,44 +76,41 @@ jobs:
echo "git user email : $github_email"
git config --global user.email "$github_email"
- name: Update policies
- name: Update Automation policies
run: bicep build ./patterns/alz/templates/policies-Automation.bicep --outfile ./patterns/alz/policyDefinitions/policies-Automation.json

- name: Update policy set definitions (initiatives)
- name: Update Compute policies
run: bicep build ./patterns/alz/templates/policies-Compute.bicep --outfile ./patterns/alz/policyDefinitions/policies-Compute.json

- name: Update policy set definitions (initiatives)
- name: Update Hybrid policies
run: bicep build ./patterns/alz/templates/policies-Hybrid.bicep --outfile ./patterns/alz/policyDefinitions/policies-Hybrid.json

- name: Update policy set definitions (initiatives)
- name: Update Key Management policies
run: bicep build ./patterns/alz/templates/policies-KeyManagement.bicep --outfile ./patterns/alz/policyDefinitions/policies-KeyManagement.json

- name: Update policy set definitions (initiatives)
- name: Update Monitoring policies
run: bicep build ./patterns/alz/templates/policies-Monitoring.bicep --outfile ./patterns/alz/policyDefinitions/policies-Monitoring.json

- name: Update policy set definitions (initiatives)
- name: Update Network policies
run: bicep build ./patterns/alz/templates/policies-Network.bicep --outfile ./patterns/alz/policyDefinitions/policies-Network.json

- name: Update policy set definitions (initiatives)
- name: Update Notification Assets policies
run: bicep build ./patterns/alz/templates/policies-NotificationAssets.bicep --outfile ./patterns/alz/policyDefinitions/policies-NotificationAssets.json

- name: Update policy set definitions (initiatives)
- name: Update Recovery Services policies
run: bicep build ./patterns/alz/templates/policies-RecoveryServices.bicep --outfile ./patterns/alz/policyDefinitions/policies-RecoveryServices.json

- name: Update policy set definitions (initiatives)
- name: Update Resource Management policies
run: bicep build ./patterns/alz/templates/policies-ServiceHealth.bicep --outfile ./patterns/alz/policyDefinitions/policies-ServiceHealth.json

- name: Update policy set definitions (initiatives)
- name: Update Security policies
run: bicep build ./patterns/alz/templates/policies-Storage.bicep --outfile ./patterns/alz/policyDefinitions/policies-Storage.json

- name: Update policy set definitions (initiatives)
- name: Update Web policies
run: bicep build ./patterns/alz/templates/policies-Web.bicep --outfile ./patterns/alz/policyDefinitions/policies-Web.json

- name: Update policy set definitions (initiatives)
run: bicep build ./patterns/alz/templates/policySets.bicep --outfile ./patterns/alz/policyDefinitions/policySets.json

- name: Update policy set definitions (initiatives)
run: bicep build ./src/templates/initiatives.bicep --outfile ./eslzArm/managementGroupTemplates/policyDefinitions/initiatives.json
- name: Update policy set definitions
run: bicep build ./patterns/alz/templates/policySets.bicep --outfile ./patterns/alz/policyDefinitions/policySets.json

- name: Check git status
run: |
Expand All @@ -123,11 +120,11 @@ jobs:
- name: Stage changes
run: |
echo "==> Stage changes..."
mapfile -t STATUS_LOG < <(git status --short | grep eslzArm/)
mapfile -t STATUS_LOG < <(git status --short | grep patterns/alz)
if [ ${#STATUS_LOG[@]} -gt 0 ]; then
echo "Found changes to the following files:"
printf "%s\n" "${STATUS_LOG[@]}"
git add --all ./eslzArm
git add --all ./patterns/alz
else
echo "No changes to add."
fi
Expand Down

0 comments on commit 7520263

Please sign in to comment.