Skip to content

Commit

Permalink
Change back to use pull_requst trigger (#1048)
Browse files Browse the repository at this point in the history
  • Loading branch information
papa99do authored Nov 21, 2024
1 parent a2ace7b commit 293247f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/cpu_local_marqo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ on:
- releases/*
paths-ignore:
- '**.md'
pull_request_target:
pull_request:
branches:
- mainline
- releases/*
Expand All @@ -44,7 +44,7 @@ permissions:
contents: read

concurrency:
group: cpu-local-api-tests-${{ github.head_ref || github.ref }}
group: cpu-local-api-tests-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down Expand Up @@ -94,9 +94,6 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
# if triggered by a pull_request_target event, we should use the merge ref of the PR
# if triggered by a push event, github.ref points to the head of the source branch
ref: ${{ github.event_name == 'pull_request_target' && format('refs/pull/{0}/merge', github.event.pull_request.number) || github.ref }}

- name: Set up Python 3.8
uses: actions/setup-python@v3
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/largemodel_unit_test_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ on:
- releases/*
paths-ignore:
- '**.md'
pull_request_target:
pull_request:
branches:
- mainline
- releases/*
paths-ignore:
- '**.md'

concurrency:
group: large-model-unit-tests-${{ github.head_ref || github.ref }}
group: large-model-unit-tests-${{ github.ref }}
cancel-in-progress: true

permissions:
Expand Down Expand Up @@ -69,9 +69,6 @@ jobs:
with:
fetch-depth: 0
path: marqo
# if triggered by a pull_request_target event, we should use the merge ref of the PR
# if triggered by a push event, github.ref points to the head of the source branch
ref: ${{ github.event_name == 'pull_request_target' && format('refs/pull/{0}/merge', github.event.pull_request.number) || github.ref }}

- name: Set up Python 3.8
uses: actions/setup-python@v3
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/unit_test_200gb_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ on:
branches:
- mainline
- releases/*
pull_request_target:
pull_request:
branches:
- mainline
- releases/*

concurrency:
group: unit-tests-${{ github.head_ref || github.ref }}
group: unit-tests-${{ github.ref }}
cancel-in-progress: true

permissions:
Expand Down Expand Up @@ -65,9 +65,6 @@ jobs:
with:
fetch-depth: 0
path: marqo
# if triggered by a pull_request_target event, we should use the merge ref of the PR
# if triggered by a push event, github.ref points to the head of the source branch
ref: ${{ github.event_name == 'pull_request_target' && format('refs/pull/{0}/merge', github.event.pull_request.number) || github.ref }}

- name: Set up Python 3.8
uses: actions/setup-python@v3
Expand Down

0 comments on commit 293247f

Please sign in to comment.