From afc3789b121d816828bb8f86725eeb8cea6f7798 Mon Sep 17 00:00:00 2001 From: Raphael Mobis Tacla Date: Tue, 31 Mar 2026 15:41:09 -0300 Subject: [PATCH 1/2] only copy list to a single folder in CLM plugin --- .github/workflows/push-task-list-changes.yml | 2 -- 1 file changed, 2 deletions(-) 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 From 981b5fb164eeabc19cffb7952356f31dd88658d7 Mon Sep 17 00:00:00 2001 From: Raphael Mobis Tacla Date: Tue, 31 Mar 2026 15:47:54 -0300 Subject: [PATCH 2/2] ignore error when trying to creating already existing lists folder --- bin/gen-list.mts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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));