Skip to content

Commit

Permalink
Update checkout sha of the code
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon committed Oct 25, 2024
1 parent fa42a53 commit dad3a00
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ jobs:
- 18
- 20
runs-on: ubuntu-latest
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_target'
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up node-${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
Expand All @@ -35,6 +41,7 @@ jobs:
- name: Run junit
run: npm run junit
- name: Upload results to Codecov
if: ${{ !cancelled() }}
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit dad3a00

Please sign in to comment.