Skip to content

Commit b9bb2d7

Browse files
[CI] Only push nightly images when running on sycl branch (#10483)
1 parent 99e8dbe commit b9bb2d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/sycl_nightly.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
- name: Build and Push Container (with drivers)
6464
uses: ./devops/actions/build_container
6565
with:
66-
push: ${{ github.event_name != 'pull_request' }}
66+
push: ${{ github.ref_name == 'sycl' }}
6767
file: ubuntu2204_preinstalled
6868
username: ${{ github.repository_owner }}
6969
password: ${{ secrets.GITHUB_TOKEN }}
@@ -76,7 +76,7 @@ jobs:
7676
- name: Build and Push Container (no drivers)
7777
uses: ./devops/actions/build_container
7878
with:
79-
push: ${{ github.event_name != 'pull_request' }}
79+
push: ${{ github.ref_name == 'sycl' }}
8080
file: ubuntu2204_preinstalled
8181
username: ${{ github.repository_owner }}
8282
password: ${{ secrets.GITHUB_TOKEN }}
@@ -89,7 +89,7 @@ jobs:
8989
- name: Build and Push Container (Build image)
9090
uses: ./devops/actions/build_container
9191
with:
92-
push: ${{ github.event_name != 'pull_request' }}
92+
push: ${{ github.ref_name == 'sycl' }}
9393
file: ubuntu2204_preinstalled
9494
username: ${{ github.repository_owner }}
9595
password: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)