Skip to content

Commit

Permalink
ci: fix source branch (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
sozercan authored Jul 18, 2024
1 parent fcdcd78 commit 6b6805c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/test-docker-args.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ jobs:
- name: build test model
run: |
# github head ref is only set for pull_request targets
# otherwise, get the github ref name to get the source branch
SOURCE_BRANCH="${GITHUB_HEAD_REF:-$GITHUB_REF_NAME}"
docker buildx build -t testmodel:test \
--build-arg="model=$MODEL_URL" \
--load --provenance=false --progress plain \
Expand All @@ -110,6 +106,9 @@ jobs:
"https://raw.githubusercontent.com/${REPO}/${SOURCE_BRANCH}/test/aikitfile-args.yaml"
env:
REPO: ${{ github.event.pull_request.head.repo.full_name }}
# github head ref is only set for pull_request targets
# otherwise, get the github ref name to get the source branch
SOURCE_BRANCH: ${{ github.head_ref || github.ref_name }}

- name: list images
run: docker images
Expand Down

0 comments on commit 6b6805c

Please sign in to comment.