From b018c17db8a028de7ee43a1013a89df651960498 Mon Sep 17 00:00:00 2001 From: itsankit-google Date: Mon, 13 May 2024 17:01:22 +0000 Subject: [PATCH] restrict running of github CI jobs without approval --- .github/workflows/build.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bd8a0c78af8..8bd21cec3a2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,11 +15,11 @@ name: Build with Unit and Integration Tests on: - workflow_run: - workflows: - - Trigger build - types: - - completed + push: + branches: [ develop, release/** ] + pull_request: + branches: [ develop, release/** ] + types: [opened, synchronize, reopened] workflow_dispatch: inputs: branch: @@ -36,11 +36,8 @@ jobs: steps: # Pinned 1.0.0 version - - uses: marocchino/action-workflow_run-status@54b6e87d6cb552fc5f36dbe9a722a6048725917a - if: github.event_name != 'workflow_dispatch' - uses: actions/checkout@v3 with: - ref: ${{ github.event.workflow_run.head_sha }} submodules: recursive # installing node 16.16 @@ -66,13 +63,13 @@ jobs: cd ../cdap mv pom.xml .. - - name: Download CDAP Sandbox and Start it + - name: Download CDAP Sandbox and Start it run: | cd sandboxjs python3 sandbox_starter.py - + - name: Install UI Dependencies - run: | + run: | npm install -g yarn # Install Yarn globally yarn --frozen-lockfile yarn run bower-root # Install Bower dependencies (deprecated in develop branch, will be removed in a future version)