From 27009d7a9627b0063ec5957bd75621a31a77984f Mon Sep 17 00:00:00 2001 From: James Ives Date: Mon, 14 Dec 2020 10:31:54 -0500 Subject: [PATCH] Stores username/email in secrets --- .github/workflows/codeql-analysis.yml | 1 - .github/workflows/production.yml | 14 +++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 1d7daa30..4abe55af 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,5 +1,4 @@ name: "CodeQL" - on: push: branches: diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 55247f28..28ea3712 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -1,4 +1,4 @@ -name: Land production js and modules +name: Deploy Production Dependencies and Code on: workflow_dispatch: push: @@ -35,16 +35,16 @@ jobs: yarn install yarn build - - name: Production node_modules + - name: Install Production node_modules run: | yarn install --production - - name: Commit and push - # keep the run green if the commit fails for the lack of changes + - name: Commit and Push + # Keep the run green if the commit fails for the lack of changes continue-on-error: True run: | - git config user.email "iam@jamesiv.es" - git config user.name "James Ives" + git config user.email "${{ secrets.GIT_CONFIG_EMAIL }}" + git config user.name "${{ secrets.GIT_CONFIG_NAME }}" git add . - git commit -m"Deploy production js code for ${{ github.sha }}" + git commit -m "Deploy Production Code for Commit ${{ github.sha }} 🚀" git push