diff --git a/.github/workflows/autochangelog.yml b/.github/workflows/autochangelog.yml index 4f6327ce03..5bc45fda06 100644 --- a/.github/workflows/autochangelog.yml +++ b/.github/workflows/autochangelog.yml @@ -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 diff --git a/tools/GenerateChangelog/ss13_genchangelog_ch.py b/tools/GenerateChangelog/ss13_genchangelog_ch.py index 6b378fea67..b96d8d9fdb 100644 --- a/tools/GenerateChangelog/ss13_genchangelog_ch.py +++ b/tools/GenerateChangelog/ss13_genchangelog_ch.py @@ -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 = {}