From 0fc9db81f5605a778102fb19a2731df63a374387 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 14 Feb 2020 08:46:34 -0500 Subject: [PATCH] event name --- .github/workflows/build.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 83740eb3..99d6f927 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: run: gem install bundler jekyll - name: Set up git credentials - if: github.event == 'push' && github.ref == 'refs/heads/master' + if: github.event_name == 'push' && github.ref == 'refs/heads/master' env: GH_TOKEN: ${{ secrets.GH_TOKEN }} run: | @@ -32,7 +32,12 @@ jobs: git config --global user.name "Bitwarden CI" - name: Print environment - run: node --version && npm --version && ruby --version && jekyll --version && git --version + run: | + node --version + npm --version + ruby --version + jekyll --version + git --version - name: Checkout repo uses: actions/checkout@v2 @@ -41,9 +46,9 @@ jobs: run: npm install - name: Build site - if: github.event != 'push' || (github.event == 'push' && github.ref != 'refs/heads/master') + if: github.event_name != 'push' || (github.event_name == 'push' && github.ref != 'refs/heads/master') run: npm run build - name: Build site and deploy to gh-pages - if: github.event == 'push' && github.ref == 'refs/heads/master' + if: github.event_name == 'push' && github.ref == 'refs/heads/master' run: npm run deploy