diff --git a/.github/workflows/sycl_precommit.yml b/.github/workflows/sycl_precommit.yml index e9539f9a0d13a..16398a01113d1 100644 --- a/.github/workflows/sycl_precommit.yml +++ b/.github/workflows/sycl_precommit.yml @@ -8,6 +8,7 @@ on: paths-ignore: - '.github/ISSUE_TEMPLATE/**' - '.github/CODEOWNERS' + - '.github/workflows/sycl_update_gpu_driver.yml' - 'devops/containers/**' - 'devops/scripts/install_drivers.sh' - 'devops/scripts/install_build_tools.sh' diff --git a/.github/workflows/sycl_update_gpu_driver.yml b/.github/workflows/sycl_update_gpu_driver.yml index 4127bf873921f..b86a7905e81c9 100644 --- a/.github/workflows/sycl_update_gpu_driver.yml +++ b/.github/workflows/sycl_update_gpu_driver.yml @@ -18,41 +18,13 @@ jobs: - name: Create Pull Request env: BRANCH: ci/update_gpu_driver-linux-${{ env.NEW_DRIVER_VERSION }} - LLVMBOT_TOKEN: ${{ secrets.LLVM_MAIN_SYNC_BBSYCL_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.LLVM_MAIN_SYNC_BBSYCL_TOKEN }} run: | cd $GITHUB_WORKSPACE - # Set fake identity to fulfil git requirements 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 GPU RT version for Linux CI" || exit 0 # exit if commit is empty - git push https://$LLVMBOT_TOKEN@github.com/${{ github.repository }} ${BRANCH} - gh pr create --head $BRANCH --title "[GHA] Uplift GPU RT version for Linux CI" --body "Uplift GPU RT version for Linux to $NEW_DRIVER_VERSION" - - update_driver_linux_staging: - runs-on: ubuntu-latest - if: github.repository == 'intel/llvm' - steps: - - uses: actions/checkout@v2 - - name: Update dependencies file - run: | - version="$(python3 devops/scripts/update_drivers.py linux_staging)" - echo 'NEW_DRIVER_VERSION='$version >> $GITHUB_ENV - - name: Update sycl Branch - env: - BRANCH: ci/update_gpu_driver-linux_staging-${{ env.NEW_DRIVER_VERSION }} - LLVMBOT_TOKEN: ${{ secrets.LLVM_MAIN_SYNC_BBSYCL_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - cd $GITHUB_WORKSPACE - # Set fake identity to fulfil git requirements - 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 GPU RT version for Nightly Builds" || exit 0 # exit if commit is empty - git push https://$LLVMBOT_TOKEN@github.com/${{ github.repository }} ${BRANCH} - gh pr create --head $BRANCH --title "[GHA] Uplift GPU RT version for Nightly Builds" --body "Uplift GPU RT version for Linux to $NEW_DRIVER_VERSION" - + git commit -m "[GHA] Uplift Linux GPU RT version to $NEW_DRIVER_VERSION" || exit 0 # exit if commit is empty + git push https://$GITHUB_TOKEN@github.com/${{ github.repository }} ${BRANCH} + gh pr create --head $BRANCH --title "[GHA] Uplift Linux GPU RT version to $NEW_DRIVER_VERSION" --body "Scheduled drivers uplift"