fix changelogbot once and for all

This commit is contained in:
Raeschen
2023-07-17 23:12:01 +02:00
parent 6b0b2efbfb
commit 40eedd875f
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -37,6 +37,6 @@ jobs:
html/changelogs_ch
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automatic changelog generation for ${{ github.events.pull_request.number }}
branch: ${{ github.events.pull_request.base }}
commit_message: Automatic changelog generation for ${{ github.event.pull_request.number }}
branch: ${{ github.event.pull_request.base }}
commit_user_name: Autochangelog Bot
@@ -111,6 +111,8 @@ for fileName in glob.glob(os.path.join(args.ymlDir, "*.yml")):
if name == 'example': continue
fileName = os.path.abspath(fileName)
formattedDate = today.strftime(fileDateFormat)
if not os.path.exists(archiveDir):
os.makedirs(archiveDir)
monthFile = os.path.join(archiveDir, formattedDate + '.yml')
print(' Reading {}...'.format(fileName))
cl = {}