From deb048297860877fb089a115a64fcee6e4669b85 Mon Sep 17 00:00:00 2001 From: Ashish Padhy <100484401+Shurtu-gal@users.noreply.github.com> Date: Wed, 20 Sep 2023 10:33:34 +0530 Subject: [PATCH] fix: remove build job --- .github/workflows/build.yml | 23 ++++++++++++++--------- .github/workflows/development.yml | 13 +++++++------ 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c12823f..572ab17 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,14 @@ name: Build Check on: + workflow_dispatch: + inputs: + fail-on-error: + description: 'Fail on error' + required: false + default: true + type: boolean + workflow_call: inputs: fail-on-error: @@ -38,9 +46,9 @@ jobs: ${{ runner.os }}-build- ${{ runner.os }}- - # - if: ${{steps.dev-cache.outputs.cache-hit != 'true'}} - # name: Install Dependencies - # run: yarn install + - if: ${{steps.dev-cache.outputs.cache-hit != 'true'}} + name: Install Dependencies + run: yarn install - name: Create production ENV env: @@ -55,7 +63,6 @@ jobs: run: | touch .env.production - echo "${{ vars.GATSBY_API_URL }}" echo "GATSBY_FIREBASE_API_KEY=${GATSBY_FIREBASE_API_KEY}" echo "GATSBY_FIREBASE_AUTH_DOMAIN=$GATSBY_FIREBASE_AUTH_DOMAIN" echo "GATSBY_FIREBASE_PROJECT_ID=$GATSBY_FIREBASE_PROJECT_ID" @@ -64,10 +71,8 @@ jobs: echo "GATSBY_FIREBASE_APP_ID=$GATSBY_FIREBASE_APP_ID" echo "GATSBY_FIREBASE_MEASUREMENT_ID=$GATSBY_FIREBASE_MEASUREMENT_ID" echo "GATSBY_API_URL=$GATSBY_API_URL" - echo "repository variable : ${{ vars.REPOSITORY_VARIABLE }}" - cat .env.production - # - name: Build Check - # run: yarn build - # continue-on-error: ${{ !inputs.fail-on-error }} + - name: Build Check + run: yarn build + continue-on-error: ${{ !inputs.fail-on-error }} diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml index 97bc3f9..f6ba336 100644 --- a/.github/workflows/development.yml +++ b/.github/workflows/development.yml @@ -6,19 +6,20 @@ on: types: [opened, synchronize, reopened, edited, ready_for_review] jobs: - build: - uses: ./.github/workflows/build.yml - with: - fail-on-error: true + # Currently, not needed as netlify is used for deployment + # build: + # uses: ./.github/workflows/build.yml + # with: + # fail-on-error: true prettier: - needs: build + # needs: build uses: ./.github/workflows/prettier.yml with: fail-on-error: true eslint: - needs: build + # needs: build uses: ./.github/workflows/eslint.yml with: fail-on-error: true