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 223b80e commit 432af69
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,18 @@ jobs:
- name: Set up branch name
id: event-info
if: github.event_name == 'push'
run: echo "::set-output name=branch::${GITHUB_REF#refs/heads/}"
run: |
branch=${{ github.ref_name }}
echo "BRANCH=$branch" >> $GITHUB_ENV
- name: Set up model name from workflow_dispatch branch
if: github.event_name == 'workflow_dispatch'
run: echo "::set-output name=branch::${GITHUB_REF#refs/heads/}"
run: |
branch=${{ github.ref_name }}
echo "BRANCH=$branch" >> $GITHUB_ENV
- name: Checkout CoModels branch
uses: actions/checkout@v4
with:
ref: ${{ steps.event-info.outputs.branch }}
ref: ${{ env.BRANCH }}
path: ${{ env.CO_MODELS_SRC}}

#- name: Prepare directories
Expand Down

0 comments on commit 432af69

Please sign in to comment.