Skip to content

Commit bb07803

Browse files
committed
fix
1 parent a99988d commit bb07803

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.github/workflows/sycl-update-gpu-driver.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- cron: '0 3 * * 1,4'
77
workflow_dispatch:
88
inputs:
9-
day_of_week:
9+
dayofweek:
1010
description: 'Override the day of the week (e.g., 1 for Monday, 2 for Tuesday, etc.)'
1111
required: false
1212
default: '2'
@@ -22,21 +22,21 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v4
2424
- name: Determine parameters based on the day of the week
25-
run: |
26-
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
27-
# Use the input day_of_week when manually triggered
28-
DAY_OF_WEEK="${{ inputs.day_of_week }}"
29-
else
30-
# Use the current day of the week when triggered by a schedule
31-
DAY_OF_WEEK=$(date +%u)
32-
fi
25+
run: |
26+
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
27+
# Use the input dayofweek when manually triggered
28+
DAY_OF_WEEK="${{ github.event.inputs.dayofweek }}"
29+
else
30+
# Use the current day of the week when triggered by a schedule
31+
DAY_OF_WEEK=$(date +%u)
32+
fi
3333
34-
if [ "$DAY_OF_WEEK" = "2" ]; then
35-
PARAM=""
36-
else
37-
PARAM="--igc-dev-only"
38-
fi
39-
echo "PARAM=$PARAM" >> $GITHUB_ENV
34+
if [ "$DAY_OF_WEEK" = "2" ]; then
35+
PARAM=""
36+
else
37+
PARAM="--igc-dev-only"
38+
fi
39+
echo "PARAM=$PARAM" >> $GITHUB_ENV
4040
- name: Update dependencies file
4141
run: |
4242
version="$(python3 devops/scripts/update_drivers.py $PARAM linux)"

0 commit comments

Comments
 (0)