Repository: AgnostiqHQ/covalent (language: python)

Issue:
PR tests attempt to validate webapp even if the webapp is not built
The automated tests for a PR were [recently changed](https://github.com/AgnostiqHQ/covalent/blob/614eb2eeeaedf7fa44870614b3f643c1ab233918/.github/workflows/tests.yml#L177) to build the webapp only if files under `covalent_ui/webapp` were changed. However, the "validate distribution" step still [always tries to validate](https://github.com/AgnostiqHQ/covalent/blob/614eb2eeeaedf7fa44870614b3f643c1ab233918/.github/workflows/tests.yml#L205) the `webapp/build` directory.


Discussion / hints:

Fix patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b78d6f6ec..4fb54178b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 ## [UNRELEASED]
 
+### Operations
+
+- Trigger webapp build if `build==true`
+
 ## [0.175.0] - 2022-08-11
 
 ### Authors


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index abf0b10ee..5df2478f0 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -165,6 +165,7 @@ jobs:
       - name: Install NPM and Yarn on CentOS
         if: >
           (github.event_name != 'pull_request'
+          || steps.working-directory.outputs.build == 'true'
           || steps.working-directory.outputs.ui_frontend == 'true')
            && matrix.container.image == 'centos/python-38-centos7'
         run: |
@@ -177,6 +178,7 @@ jobs:
         if: >
           github.event_name != 'pull_request'
           || steps.working-directory.outputs.ui_frontend == 'true'
+          || steps.working-directory.outputs.build == 'true'
         uses: nick-fields/retry@v2
         with:
           timeout_minutes: 10
@@ -204,16 +206,6 @@ jobs:
           diff -x .gitignore -r covalent-${VERSION}/covalent_dispatcher ../covalent_dispatcher
           diff -x README.md -r covalent-${VERSION}/covalent_migrations ../covalent_migrations
           diff -x .gitignore -x README.md -x webapp covalent-${VERSION}/covalent_ui ../covalent_ui
-          rm -rf covalent-${VERSION}/
-
-      - name: Validate webapp
-        if: >
-          github.event_name != 'pull_request'
-          || steps.working-directory.outputs.ui_frontend == 'true'
-        run: |
-          VERSION="$(cat ./VERSION)"
-          cd dist
-          tar xzf covalent-${VERSION}.tar.gz
           diff -r covalent-${VERSION}/covalent_ui/webapp/build ../covalent_ui/webapp/build
           rm -rf covalent-${VERSION}/