File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,10 @@ jobs:
34
34
# If the current HEAD is different then a commit was made, so make a PR.
35
35
- run : |
36
36
if [ "${{ github.sha }}" != $(git rev-parse HEAD) ]; then
37
- time=`date '+%Y-%m-%d'`
38
37
branch=update-$time
39
38
git checkout -b $branch
40
39
git push origin $branch:$branch
41
- gh pr create \
42
- --title "Auto-update for $time" \
43
- --fill
40
+ gh pr create --fill
44
41
fi
45
42
env:
46
43
GH_TOKEN: ${{ github.token }}
Original file line number Diff line number Diff line change 13
13
import shutil
14
14
import subprocess
15
15
import sys
16
+ from datetime import datetime
16
17
17
18
18
19
class GitError (RuntimeError ):
@@ -214,7 +215,8 @@ def main():
214
215
if len (updated ) == 0 :
215
216
print ('No spec changes found, not creating a new commit' )
216
217
return 0
217
- message = 'Update repos:\n \n '
218
+ today = datetime .now ().strftime ("%Y-%m-%d" )
219
+ message = f'Auto-update for { today } \n \n Update repos:\n \n '
218
220
for repo in updated :
219
221
message += f' { repo .dir } :\n '
220
222
message += f' { repo .url ()} /commit/{ repo .rev } \n '
You can’t perform that action at this time.
0 commit comments