Skip to content
This repository was archived by the owner on Jun 8, 2025. It is now read-only.

Commit fdde703

Browse files
committed
fix: set schedule default value
1 parent b0b0c0e commit fdde703

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/nightly-release.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,24 @@ jobs:
2727
torch: ["2.4"]
2828
runs-on: [self-hosted]
2929
steps:
30+
- name: Set default values
31+
id: set_defaults
32+
run: |
33+
echo "[INFO] Event name is '${{ github.event_name }}'"
34+
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
35+
echo "REPO=${{ inputs.repo }}" >> $GITHUB_ENV
36+
echo "BRANCH=${{ inputs.branch }}" >> $GITHUB_ENV
37+
elif [[ "${{ github.event_name }}" == "schedule" ]]; then
38+
echo "REPO=flashinfer-ai/flashinfer" >> $GITHUB_ENV
39+
echo "BRANCH=main" >> $GITHUB_ENV
40+
else
41+
echo "[ERROR] Unsupported event '${{ github.event_name }}'." >&2
42+
exit 1
43+
fi
44+
3045
- run: |
3146
rm -rf flashinfer
32-
git clone -b ${{ inputs.branch }} --recurse-submodules --depth=1 https://github.com/${{ inputs.repo }}
47+
git clone -b ${{ env.BRANCH }} --recurse-submodules --depth=1 https://github.com/${{ env.REPO }}
3348
pushd flashinfer
3449
sed -i 's/+cu/\.cu/g' scripts/run-ci-build-wheel.sh
3550
sed -i 's|/ci-cache|/opt/dlami/nvme/flashinfer/github|g' scripts/run-ci-build-wheel.sh

0 commit comments

Comments
 (0)