Skip to content

Commit

Permalink
restrict running of github CI jobs without approval
Browse files Browse the repository at this point in the history
  • Loading branch information
itsankit-google committed May 13, 2024
1 parent 4c4358d commit b018c17
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit b018c17

Please sign in to comment.