From a7a7e0e11658d8effeb90a144f9f3ae426c7c8e1 Mon Sep 17 00:00:00 2001 From: Ing Date: Thu, 25 Apr 2024 08:56:31 +0800 Subject: [PATCH] add on release get data --- .github/workflows/data.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/data.yml b/.github/workflows/data.yml index 2f90750b..56a93358 100644 --- a/.github/workflows/data.yml +++ b/.github/workflows/data.yml @@ -7,6 +7,10 @@ name: Data on: + release: + types: + - created + workflow_dispatch: inputs: push: @@ -68,7 +72,7 @@ jobs: python scripts/func.py getmodules -w "rr/ws" -j "docs/modules.json" -x "docs/modules.xlsx" - name: Upload to Artifacts - if: success() && inputs.push == false + if: success() uses: actions/upload-artifact@v4 with: name: addons @@ -78,7 +82,7 @@ jobs: retention-days: 5 - name: Check and Push - if: success() && inputs.push == true + if: success() && (inputs.push == true || github.event.action == 'created') run: | echo "Git push ..." git pull