Skip to content

Commit ff9bfda

Browse files
committed
fixed branch
1 parent 11f4ce1 commit ff9bfda

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/cron.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@ jobs:
1414
runs-on: ubuntu-latest
1515
outputs:
1616
date: ${{ steps.date.outputs.date }}
17+
branch: ${{ steps.branch.outputs.branch }}
1718
steps:
1819
- name: Get current date
1920
id: date
2021
run: echo name=date::$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
22+
- name: Get current branch
23+
id: branch
24+
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
2125

2226
dask-tests:
2327
needs: setup
@@ -28,7 +32,7 @@ jobs:
2832
# This selects "ARCH=amd64 + the latest supported Python + CUDA".
2933
matrix_filter: map(select(.ARCH == "amd64")) | group_by(.CUDA_VER|split(".")|map(tonumber)|.[0]) | map(max_by([(.PY_VER|split(".")|map(tonumber)), (.CUDA_VER|split(".")|map(tonumber))]))
3034
build_type: nightly
31-
branch: main
35+
branch: ${{ needs.setup.outputs.branch }}
3236
date: ${{ needs.setup.outputs.date }}
3337
sha: ${{ github.sha }}
3438
script: scripts/run.sh

0 commit comments

Comments
 (0)