Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit 575bc88

Browse files
authored
monthly release (Azure#19728)
* monthly release * fix * exit 0
1 parent 3ceaba2 commit 575bc88

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

eng/scripts/mgmt-auto-release.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
#!/bin/bash
22
set -ex
33

4+
today=`date "+%Y%m%d"`
5+
firstDay=`date -d "${today}" +%Y%m01`
6+
week=`date -d "$firstDay" +%w`
7+
secondSaturday=$((firstDay+(12 - week) % 7 + 8))
8+
9+
if [ $today -gt $secondSaturday ]
10+
then
11+
echo "The PR generation time of the current month is: [$firstDay-$secondSaturday]"
12+
exit 0
13+
fi
14+
415
export PATH=$PATH:$HOME/go/bin
516
git config --global user.email "ReleaseHelper"
617
git config --global user.name "ReleaseHelper"

0 commit comments

Comments
 (0)