diff --git a/.github/workflows/push-task-list-changes.yml b/.github/workflows/push-task-list-changes.yml index 76f9b04..8419194 100644 --- a/.github/workflows/push-task-list-changes.yml +++ b/.github/workflows/push-task-list-changes.yml @@ -29,8 +29,6 @@ jobs: - name: Copy task tiers to plugin repository run: | cp lists/tedious.json collection-log-master/src/main/resources/com/collectionlogmaster/task-list.json - cp lists/tedious.json collection-log-master/src/main/resources/com/collectionlogmaster/domain/task-list.json - cp lists/tedious.json collection-log-master/src/main/resources/com/logmaster/domain/task-list.json - name: Create PR uses: ./.github/actions/create-pr diff --git a/bin/gen-list.mts b/bin/gen-list.mts index 1defb9c..96a2487 100644 --- a/bin/gen-list.mts +++ b/bin/gen-list.mts @@ -24,7 +24,11 @@ for (const tier of listTiers) { listData[tierData.name] = tierData.tasks; } -await mkdir('./lists'); +await mkdir('./lists').catch((e) => { + if (e.code !== 'EEXIST') { + throw e; + } +}); // @ts-expect-error await writeFile(`./lists/${listName}.json`, fmt.Serialize(listData));