From f34a3c0fc64c8e4b8f10235edd84ff87fac4ef66 Mon Sep 17 00:00:00 2001 From: Bobby <30593201+luciferreeves@users.noreply.github.com> Date: Thu, 6 Jun 2024 15:16:30 +0000 Subject: AI Spam Check --- .github/workflows/main.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b9e73c52..90f0922c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,16 +1,19 @@ name: remote ssh command on: [push] jobs: - build: name: Build runs-on: ubuntu-latest steps: - - name: executing remote ssh commands using ssh key - uses: appleboy/ssh-action@master - with: - host: ${{ secrets.HOST }} - username: ${{ secrets.USERNAME }} - key: ${{ secrets.KEY_ED25519 }} - port: ${{ secrets.PORT }} - script: sh /home/ubuntu/deploy.sh \ No newline at end of file + - name: executing remote ssh commands using ssh key + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + key: ${{ secrets.KEY_ED25519 }} + port: ${{ secrets.PORT }} + script: | + if [ -z "$GEMINI_API_KEY" ]; then + export GEMINI_API_KEY=${{ secrets.GEMINI_API_KEY }} + fi + sh /home/ubuntu/deploy.sh -- cgit v1.2.3