diff --git a/.github/workflows/develop-push-deploy.yml b/.github/workflows/develop-push-deploy.yml index c8cb6fb..7091ed1 100644 --- a/.github/workflows/develop-push-deploy.yml +++ b/.github/workflows/develop-push-deploy.yml @@ -5,10 +5,15 @@ on: branches: [ develop ] jobs: - run-tests: + build: runs-on: ubuntu-latest + run-tests: + env: + stagingDeploySecret: ${{secrets.DEPLOY_URL_STAGING}} + + runs-on: ubuntu-latest services: mysql: image: mysql:5.7 @@ -54,7 +59,8 @@ jobs: run: php artisan test - name: Webhook uses: joelwmale/webhook-action@master + if: ${{ env.stagingDeploySecret != 0 }} env: - WEBHOOK_URL: ${{ secrets.DEPLOY_URL_STAGING_HEY }} + WEBHOOK_URL: ${{ secrets.DEPLOY_URL_STAGING }} data: "Deploy VINE staging please!"