Commit ae7b4636 authored by Muyang Li's avatar Muyang Li
Browse files

chore: change the checkout target for the test

parent 092e01ec
......@@ -34,25 +34,8 @@ jobs:
COMFYUI_MODELS_ROOT: "/home/nunchaku/comfyui_models"
NUNCHAKU_TEST_CACHE_ROOT: "/home/nunchaku/nunchaku_test_root"
steps:
- name: Determine ref
id: set-ref
run: |
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
# Use the merged commit SHA for PRs
echo "ref=${{ github.event.pull_request.merge_commit_sha }}" >> $GITHUB_OUTPUT
elif [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
# Use github.event.inputs.ref if provided, else default to main
if [[ -n "${{ github.event.inputs.ref }}" ]]; then
echo "ref=${{ github.event.inputs.ref }}" >> $GITHUB_OUTPUT
else
echo "ref=main" >> $GITHUB_OUTPUT
fi
fi
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ steps.set-ref.outputs.ref }}
submodules: true
- name: Show current commit
run: git log -1 --oneline
- name: Set up Python
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment