Skip to content

Commit

Permalink
Restore the pull request trigger event
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon committed Jan 21, 2025
1 parent b50a1ac commit 0975628
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ on:
push:
branches:
- 'main'
pull_request_target:
types: [opened, synchronize, reopened]
pull_request:

jobs:
build-test:
Expand All @@ -19,11 +18,6 @@ jobs:
if: github.repository == 'opensearch-project/automation-app'
steps:
- uses: actions/checkout@v4
if: github.event_name == 'push'
- uses: actions/checkout@v4
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up node-${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
Expand Down

0 comments on commit 0975628

Please sign in to comment.