We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ceaba2 commit 575bc88Copy full SHA for 575bc88
eng/scripts/mgmt-auto-release.sh
@@ -1,6 +1,17 @@
1
#!/bin/bash
2
set -ex
3
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
15
export PATH=$PATH:$HOME/go/bin
16
git config --global user.email "ReleaseHelper"
17
git config --global user.name "ReleaseHelper"
0 commit comments