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/ diff --git a/.github/workflows/validate-rsis.yml b/.github/workflows/validate-rsis.yml index b76df28e6a..a5e15a575d 100644 --- a/.github/workflows/validate-rsis.yml +++ b/.github/workflows/validate-rsis.yml @@ -2,7 +2,7 @@ name: RSI Validator on: push: - branches: [ staging, trying ] + branches: [ master, staging, trying ] merge_group: pull_request: paths: