Skip to content

Commit 3f359e7

Browse files
committed
Added github action script.
1 parent c8d1682 commit 3f359e7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
cp cloudformation.yaml cloudformation.yaml.bak
4+
sed -e '/ZipFile/,$d' cloudformation.yaml > cloudformation.yaml.tmp
5+
echo " ZipFile: |" >> cloudformation.yaml.tmp
6+
cat monitor_ontap_services.py | sed 's/^/ /' >> cloudformation.yaml.tmp
7+
if diff cloudformation.yaml cloudformation.yaml.tmp; then
8+
echo "No changes detected"
9+
exit 0
10+
fi
11+
echo "Updating cloudformation.yaml"
12+
mv cloudformation.yaml.tmp cloudformation.yaml

0 commit comments

Comments
 (0)