diff --git a/.github/workflows/deploy_app.yml b/.github/workflows/deploy_app.yml index 405033c..84979fe 100644 --- a/.github/workflows/deploy_app.yml +++ b/.github/workflows/deploy_app.yml @@ -26,13 +26,11 @@ concurrency: env: CI: true PROJECT_ID: ${{ secrets.PROJECT_ID }} - MAIN: ${{ github.ref == 'refs/heads/main' }} SERVICE: audiora OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} ELEVENLABS_API_KEY: ${{ secrets.ELEVENLABS_API_KEY }} - BUCKET_NAME: ${{ secrets.BUCKET_NAME }} jobs: prepare: @@ -91,7 +89,6 @@ jobs: GEMINI_API_KEY=${{ secrets.GEMINI_API_KEY }} ANTHROPIC_API_KEY=${{ secrets.ANTHROPIC_API_KEY }} ELEVENLABS_API_KEY=${{ secrets.ELEVENLABS_API_KEY }} - BUCKET_NAME=${{ secrets.BUCKET_NAME }} - run: curl -f "${{ steps.deploy.outputs.url }}" - uses: marocchino/sticky-pull-request-comment@v2 @@ -102,7 +99,7 @@ jobs: promote: runs-on: ubuntu-latest - if: (needs.prepare.outputs.MAIN == 'true') + if: ${{ github.ref == 'refs/heads/main' }} needs: [prepare, deploy] timeout-minutes: 3 steps: diff --git a/.github/workflows/deploy_server.yml b/.github/workflows/deploy_server.yml index 92e2af5..e95299a 100644 --- a/.github/workflows/deploy_server.yml +++ b/.github/workflows/deploy_server.yml @@ -24,13 +24,11 @@ concurrency: env: CI: true PROJECT_ID: ${{ secrets.PROJECT_ID }} - MAIN: ${{ github.ref == 'refs/heads/main' }} SERVICE: audiora-api OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} ELEVENLABS_API_KEY: ${{ secrets.ELEVENLABS_API_KEY }} - BUCKET_NAME: ${{ secrets.BUCKET_NAME }} jobs: prepare: @@ -95,7 +93,6 @@ jobs: GEMINI_API_KEY=${{ secrets.GEMINI_API_KEY }} ANTHROPIC_API_KEY=${{ secrets.ANTHROPIC_API_KEY }} ELEVENLABS_API_KEY=${{ secrets.ELEVENLABS_API_KEY }} - BUCKET_NAME=${{ secrets.BUCKET_NAME }} - run: curl -f "${{ steps.deploy.outputs.url }}" - uses: marocchino/sticky-pull-request-comment@v2 @@ -110,7 +107,7 @@ jobs: promote: runs-on: ubuntu-latest - if: (needs.prepare.outputs.MAIN == 'true') + if: ${{ github.ref == 'refs/heads/main' }} needs: [prepare, deploy] timeout-minutes: 2 steps: