Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawnXuan committed Nov 9, 2023
1 parent a975546 commit 12b1ab2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,25 @@ jobs:
name: Collect information about PR and source
#runs-on: ${{ matrix.runs-on }} # todo
runs-on: ubuntu-latest
if: github.event.push
steps:
- name: Checkout CoModels branch
uses: actions/checkout@v4
if: github.event.push
with:
ref: ${{ inputs.branch }}
path: ${{ env.CO_MODELS_SRC}}
- name: Set up model name
if: github.event.push
run: echo "{model}=${{ inputs.branch }}" >> $GITHUB_OUTPUT

if: github.event.pull_request.draft == false && github.base_ref == 'main'
steps:
- name: Checkout PR branch
uses: actions/checkout@v4
if: github.event.pull_request.draft == false && github.base_ref == 'main'
with:
repository: ${{github.event.pull_request.head.repo.full_name}}
ref: ${{ github.event.pull_request.head.sha }}
path: ${{ env.CO_MODELS_SRC}}

- name: Set up model name
if: github.event.pull_request.draft == false && github.base_ref == 'main'
run: echo "{model}=${github.event.pull_request.title}" >> $GITHUB_OUTPUT

#- name: Prepare directories
Expand Down

0 comments on commit 12b1ab2

Please sign in to comment.