diff --git a/.github/workflows/yaml-linter.yml b/.github/workflows/yaml-linter.yml index 4bc21e86c3..28726e693d 100644 --- a/.github/workflows/yaml-linter.yml +++ b/.github/workflows/yaml-linter.yml @@ -14,9 +14,26 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.2.2 - - name: Delete Sponsors Content + # Corvax-Secrets-Start + - name: Setup secrets + env: + SSH_KEY: ${{ secrets.SECRETS_PRIVATE_KEY }} + if: ${{ env.SSH_KEY != '' }} run: | - rm -rf Resources/Prototypes/_Wega/Sponsors + mkdir -p ~/.ssh + echo "${{ secrets.SECRETS_PRIVATE_KEY }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + echo "HOST *" > ~/.ssh/config + echo " Hostname github.com" >> ~/.ssh/config + echo " Port 22" >> ~/.ssh/config + echo " StrictHostKeyChecking no" >> ~/.ssh/config + git clone git@github.com:corvax-nexus/secrets.git Secrets + cp -R Secrets/Resources/Prototypes Resources/Prototypes/CorvaxSecrets + cp -R Secrets/Resources/ServerPrototypes Resources/Prototypes/CorvaxSecretsServer + cp -R Secrets/Resources/Locale Resources/Locale/ru-RU/corvax-secrets + cp -R Secrets/Resources/Textures Resources/Textures/CorvaxSecrets + cp -R Secrets/Resources/Audio Resources/Audio/CorvaxSecrets + # Corvax-Secrets-End - name: Setup submodule run: | git submodule update --init --recursive