Skip to content

Commit 7ca69f3

Browse files
committed
Reuse existing workflow
1 parent b74e1bc commit 7ca69f3

File tree

2 files changed

+12
-36
lines changed

2 files changed

+12
-36
lines changed

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Update GPU driver
33
on:
44
schedule:
55
- cron: '0 3 * * 2'
6+
- cron: '0 3 * * 1,4'
67
workflow_dispatch:
78

89
permissions: read-all
@@ -15,9 +16,19 @@ jobs:
1516
if: github.repository == 'intel/llvm'
1617
steps:
1718
- uses: actions/checkout@v4
19+
- name: Determine parameters based on the day of the week
20+
id: params
21+
run: |
22+
DAY_OF_WEEK=$(date +%u)
23+
if [ "$DAY_OF_WEEK" = "2" ]; then
24+
PARAM=""
25+
else
26+
PARAM="--igc-dev-only"
27+
fi
28+
echo "PARAM=$PARAM" >> $GITHUB_ENV
1829
- name: Update dependencies file
1930
run: |
20-
version="$(python3 devops/scripts/update_drivers.py linux)"
31+
version="$(python3 devops/scripts/update_drivers.py $PARAM linux)"
2132
echo 'NEW_DRIVER_VERSION='$version >> $GITHUB_ENV
2233
- name: Create Pull Request
2334
env:

.github/workflows/sycl-update-igc-dev-driver.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)