From 804c5e90e802e4d3b9b226f6732bdfa00ed0f72c Mon Sep 17 00:00:00 2001 From: Joel Clermont Date: Mon, 18 Dec 2023 14:58:36 -0600 Subject: [PATCH] bump cs standards and suppress deploy if secret not set --- .github/workflows/ci.yml | 4 ++-- bootstrap/app.php | 2 ++ composer.lock | 12 ++++++------ public/index.php | 2 ++ 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 327cf91..309984f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,8 +96,8 @@ jobs: - name: Deploy to staging if develop branch if: github.ref == 'refs/heads/develop' - run: curl -s ${{ secrets.ENVOYER_STAGING_TRIGGER }} + run: [ -n "${{ secrets.ENVOYER_STAGING_TRIGGER }}" ] && curl -s ${{ secrets.ENVOYER_STAGING_TRIGGER }} - name: Deploy to prod if main branch if: github.ref == 'refs/heads/main' - run: curl -s ${{ secrets.ENVOYER_PROD_TRIGGER }} + run: [ -n "${{ secrets.ENVOYER_PROD_TRIGGER }}" ] && curl -s ${{ secrets.ENVOYER_PROD_TRIGGER }} diff --git a/bootstrap/app.php b/bootstrap/app.php index 037e17d..08d677b 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -1,5 +1,7 @@