Skip to content

Commit

Permalink
Update build-iac-azure-arm.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
crpietschmann committed Mar 12, 2024
1 parent a478047 commit 2b8efb4
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build-iac-azure-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,19 @@ jobs:
cp -rf IaC/Bicep/v2/deploy.json IaC/ARM/v2/azuredeploy.json
rm IaC/Bicep/v2/deploy.json
- name: Commit to Repo
- name: Check for Changes
id: check_changes
run: |
if [[ -n "$(git diff --exit-code)" ]]; then
echo "Changes detected."
echo "::set-output name=has_changes::true"
else
echo "No changes detected."
echo "::set-output name=has_changes::false"
fi
- name: Commit and Push Changes
if: steps.check_changes.outputs.has_changes == 'true'
run: |
git config --global user.email "${{ github.actor }}"
git config --global user.name "${{ github.actor }}@users.noreply.github.com"
Expand Down

0 comments on commit 2b8efb4

Please sign in to comment.