From 9614db1d9b2061883f142d5b711a8023ffb0b31d Mon Sep 17 00:00:00 2001 From: Jinsong Ji Date: Wed, 17 Apr 2024 18:10:03 +0200 Subject: [PATCH] Add workflow to update igc driver --- .../workflows/sycl-update-igc-dev-driver.yml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/sycl-update-igc-dev-driver.yml diff --git a/.github/workflows/sycl-update-igc-dev-driver.yml b/.github/workflows/sycl-update-igc-dev-driver.yml new file mode 100644 index 0000000000000..8a323a1e05221 --- /dev/null +++ b/.github/workflows/sycl-update-igc-dev-driver.yml @@ -0,0 +1,35 @@ +name: Update IGC dev driver + +on: + schedule: + - cron: '0 3 * * 1,4' + workflow_dispatch: + +permissions: read-all + +jobs: + update_driver_linux: + permissions: + contents: write # for Git to git push + runs-on: ubuntu-20.04 + if: github.repository == 'intel/llvm' + steps: + - uses: actions/checkout@v4 + - name: Update dependencies file + run: | + version="$(python3 devops/scripts/update_drivers.py linux --igc-dev-only)" + echo 'NEW_DRIVER_VERSION='$version >> $GITHUB_ENV + - name: Create Pull Request + env: + BRANCH: ci/update_gpu_driver-linux-${{ env.NEW_DRIVER_VERSION }} + GITHUB_TOKEN: ${{ secrets.LLVM_MAIN_SYNC_BBSYCL_TOKEN }} + run: | + cd $GITHUB_WORKSPACE + git config --global user.name "GitHub Actions" + git config --global user.email "actions@github.com" + git checkout -B $BRANCH + git add -u + git commit -m "[GHA] Uplift Linux IGC Dev RT version to $NEW_DRIVER_VERSION" || exit 0 # exit if commit is empty + git show + git push https://$GITHUB_TOKEN@github.com/${{ github.repository }} ${BRANCH} + gh pr create --head $BRANCH --title "[GHA] Uplift Linux IGC Dev RT version to $NEW_DRIVER_VERSION" --body "Scheduled igc dev drivers uplift"