From 72b50b0554df9e854c2ffef66e75f4142dbca783 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Sat, 30 Dec 2023 02:14:04 +0300 Subject: [PATCH] Simplified launch of data update --- .github/workflows/update.yml | 2 +- composer.json | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 25c3a9f..5168686 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -36,7 +36,7 @@ jobs: run: | IS_DIRTY=1 - sudo php ./bin/native collect + composer collect { git add . && git commit -a -m "📦 Data updated"; } || IS_DIRTY=0 diff --git a/composer.json b/composer.json index cb4aa0e..c380a24 100644 --- a/composer.json +++ b/composer.json @@ -74,14 +74,9 @@ "sort-packages": true }, "scripts": { - "post-install-cmd": [ - "@cldr" - ], - "post-update-cmd": [ - "@cldr" - ], - "cldr": [ - "php bin/native cldr" + "collect": [ + "php bin/native cldr", + "php bin/native collect" ], "test": [ "php vendor/bin/pest --parallel"