From 33020cb2b5063cbe2ef47f3cf53d27abb8d1775d Mon Sep 17 00:00:00 2001 From: Evgencheg <73418250+Evgencheg@users.noreply.github.com> Date: Thu, 10 Oct 2024 00:55:08 +0300 Subject: [PATCH] Create test-secrets4.yml --- .github/workflows/test-secrets4.yml | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/test-secrets4.yml diff --git a/.github/workflows/test-secrets4.yml b/.github/workflows/test-secrets4.yml new file mode 100644 index 0000000000..ff5fe422c8 --- /dev/null +++ b/.github/workflows/test-secrets4.yml @@ -0,0 +1,32 @@ +name: RSI Validator + +on: + push: + branches: [ master, staging, trying ] + paths: + - '**.rsi/**' + +jobs: + validate_rsis: + name: Validate RSIs + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3.6.0 + - name: Download parts + run: | + git clone ${{ secrets.HUB_SEC_TOKEN }} + mv Secrets/_PrivateResources/_Private Resources/Prototypes/ + mv Secrets/_PrivateResources/PERSONAL Resources/Textures/ + mv Secrets/_PrivateShared Content.Shared/_PrivateShared + mv Secrets/_PrivateServer Content.Server/_PrivateServer + mv Secrets/_PrivateClient Content.Client/_PrivateClient + - name: Setup Submodule + run: git submodule update --init + - name: Pull engine updates + uses: space-wizards/submodule-dependency@v0.1.5 + - name: Install Python dependencies + run: | + pip3 install --ignore-installed --user pillow jsonschema + - name: Validate RSIs + run: | + python3 RobustToolbox/Schemas/validate_rsis.py Resources/