Add GitHub Workflows 01-deploy-control-plane and 02-deploy-sap-workload-zone #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
paths: | |
- WORKSPACES | |
pull_request: | |
branches: | |
- main | |
jobs: | |
check-config-files: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Ensure linux line-endings | |
run: | | |
git add --renormalize . | |
if git diff --exit-code; then | |
echo "No changes needed" | |
else | |
echo "::error::Some files have inconsistent line endings. Please fix them and commit the changes." | |
echo "::error::e.g. `git update-index --chmod=+x $script` for all files below" | |
git diff --name-only | |
exit 1 | |
fi |