diff --git a/.github/workflows/mobeigi.yml b/.github/workflows/mobeigi.yml index 6aeb422f..a9d6d25c 100644 --- a/.github/workflows/mobeigi.yml +++ b/.github/workflows/mobeigi.yml @@ -61,25 +61,25 @@ jobs: deploy: runs-on: ubuntu-latest - needs: [ build_test_app, build_test_server ] + needs: [build_test_app, build_test_server] if: github.event_name == 'push' && github.ref == 'refs/heads/master' steps: - - name: Deploy App (via webhook) - uses: distributhor/workflow-webhook@v2 - with: - webhook_url: ${{ secrets.WEBHOOK_URL }} - webhook_secret: ${{ secrets.WEBHOOK_SECRET }} - data: '{ - "DOCKER_COMPOSE_PROJECT_NAME": "${{ vars.APP_DOCKER_COMPOSE_PROJECT_NAME }}", - "GIT_REPOSITORY_NAME": "${{ vars.GIT_REPOSITORY_NAME }}" - }' + - name: Deploy App (via webhook) + uses: distributhor/workflow-webhook@v2 + with: + webhook_url: ${{ secrets.WEBHOOK_URL }} + webhook_secret: ${{ secrets.WEBHOOK_SECRET }} + data: '{ + "DOCKER_COMPOSE_PROJECT_NAME": "${{ vars.APP_DOCKER_COMPOSE_PROJECT_NAME }}", + "GIT_REPOSITORY_NAME": "${{ vars.GIT_REPOSITORY_NAME }}" + }' - - name: Deploy Server (via webhook) - uses: distributhor/workflow-webhook@v2 - with: - webhook_url: ${{ secrets.WEBHOOK_URL }} - webhook_secret: ${{ secrets.WEBHOOK_SECRET }} - data: '{ - "DOCKER_COMPOSE_PROJECT_NAME": "${{ vars.SERVER_DOCKER_COMPOSE_PROJECT_NAME }}", - "GIT_REPOSITORY_NAME": "${{ vars.GIT_REPOSITORY_NAME }}" - }' + - name: Deploy Server (via webhook) + uses: distributhor/workflow-webhook@v2 + with: + webhook_url: ${{ secrets.WEBHOOK_URL }} + webhook_secret: ${{ secrets.WEBHOOK_SECRET }} + data: '{ + "DOCKER_COMPOSE_PROJECT_NAME": "${{ vars.SERVER_DOCKER_COMPOSE_PROJECT_NAME }}", + "GIT_REPOSITORY_NAME": "${{ vars.GIT_REPOSITORY_NAME }}" + }'