Skip to content

Commit 44b5947

Browse files
author
Colin Davidson
authored
Merge pull request uxlfoundation#925 from coldav/colin/fix_fork_workflows
Fix workflows running in forks.
2 parents 9917b89 + 5ff8281 commit 44b5947

8 files changed

Lines changed: 12 additions & 10 deletions

.github/workflows/create_publish_artifacts.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515

1616
# build and run for RISCV
1717
run_riscv_m1_nightly_package:
18+
if: github.repository == 'uxlfoundation/oneapi-construction-kit' || github.event_name == 'workflow_dispatch'
1819
runs-on: ubuntu-22.04
1920
container:
2021
image: 'ghcr.io/uxlfoundation/ock_ubuntu_22.04-x86-64:latest'

.github/workflows/docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ permissions: {}
2424
jobs:
2525
# Build job
2626
build:
27+
if: github.repository == 'uxlfoundation/oneapi-construction-kit' || github.event_name == 'workflow_dispatch'
2728
runs-on: ubuntu-latest
2829
steps:
2930
- name: Checkout

.github/workflows/planned_testing_caller_19.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ concurrency:
1616

1717
jobs:
1818
L19_:
19-
if: github.repository == 'uxlfoundation/oneapi-construction-kit' || github.event_name != 'schedule'
19+
if: github.repository == 'uxlfoundation/oneapi-construction-kit'
2020
uses: ./.github/workflows/planned_testing_caller.yml
2121
with:
2222
llvm_version: '19'
@@ -48,7 +48,7 @@ jobs:
4848
# This cleans up any caches which may have been created when running external tests
4949
clean_caches:
5050
needs: [ L19_ ]
51-
if: github.repository == 'uxlfoundation/oneapi-construction-kit' && github.event_name == 'schedule' && always()
51+
if: github.repository == 'uxlfoundation/oneapi-construction-kit' && always()
5252
runs-on: ubuntu-latest
5353
permissions:
5454
actions: write # for gh cache delete

.github/workflows/planned_testing_caller_20.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ concurrency:
2424
jobs:
2525
# This makes the diagram too big if we post much here so L20_ is used.
2626
L20_:
27-
if: github.repository == 'uxlfoundation/oneapi-construction-kit' || github.event_name != 'schedule'
27+
if: github.repository == 'uxlfoundation/oneapi-construction-kit'
2828
uses: ./.github/workflows/planned_testing_caller.yml
2929
with:
3030
llvm_version: '20'
@@ -38,7 +38,7 @@ jobs:
3838
# This cleans up any caches which may have been created when running external tests
3939
clean_caches:
4040
needs: [ L20_ ]
41-
if: github.repository == 'uxlfoundation/oneapi-construction-kit' && github.event_name == 'schedule' && always()
41+
if: github.repository == 'uxlfoundation/oneapi-construction-kit' && always()
4242
runs-on: ubuntu-latest
4343
permissions:
4444
actions: write # for gh cache delete

.github/workflows/planned_testing_caller_21.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ concurrency:
2424
jobs:
2525
# This makes the diagram too big if we post much here so L21_ is used.
2626
L21_:
27-
if: github.repository == 'uxlfoundation/oneapi-construction-kit' || github.event_name != 'schedule'
27+
if: github.repository == 'uxlfoundation/oneapi-construction-kit'
2828
uses: ./.github/workflows/planned_testing_caller.yml
2929
with:
3030
llvm_version: '21'
@@ -37,7 +37,7 @@ jobs:
3737
# This cleans up any caches which may have been created when running external tests
3838
clean_caches:
3939
needs: [ L21_ ]
40-
if: github.repository == 'uxlfoundation/oneapi-construction-kit' && github.event_name == 'schedule' && always()
40+
if: github.repository == 'uxlfoundation/oneapi-construction-kit' && always()
4141
runs-on: ubuntu-latest
4242
permissions:
4343
actions: write # for gh cache delete

.github/workflows/planned_testing_caller_main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ concurrency:
1717
jobs:
1818
# This makes the diagram too big if we post much here so Lmainfullexp_ is used.
1919
Lmainfullexp_:
20-
if: github.repository == 'uxlfoundation/oneapi-construction-kit' || github.event_name != 'schedule'
20+
if: github.repository == 'uxlfoundation/oneapi-construction-kit'
2121
uses: ./.github/workflows/planned_testing_caller.yml
2222
with:
2323
llvm_version: 'main'

.github/workflows/planned_testing_caller_mini_main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ concurrency:
1717
jobs:
1818
# This makes the diagram too big if we post much here so Lmainexp_ is used.
1919
Lmainexp_:
20-
if: github.repository == 'uxlfoundation/oneapi-construction-kit' || github.event_name != 'schedule'
20+
if: github.repository == 'uxlfoundation/oneapi-construction-kit'
2121
uses: ./.github/workflows/planned_testing_caller.yml
2222
with:
2323
llvm_version: 'main'

.github/workflows/pr_tests_cache.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ concurrency:
3030
permissions: {}
3131
jobs:
3232
ubuntu_22_llvm_prev_jobs:
33-
if: github.repository == 'uxlfoundation/oneapi-construction-kit' || github.event_name != 'schedule'
33+
if: github.repository == 'uxlfoundation/oneapi-construction-kit' || github.event_name == 'workflow_dispatch'
3434
runs-on: ubuntu-22.04
3535
container:
3636
image: ghcr.io/uxlfoundation/ock_ubuntu_22.04-x86-64:latest
@@ -59,7 +59,7 @@ jobs:
5959
cache_seed: true
6060

6161
ubuntu_22_llvm_current_jobs:
62-
if: github.repository == 'uxlfoundation/oneapi-construction-kit' || github.event_name != 'schedule'
62+
if: github.repository == 'uxlfoundation/oneapi-construction-kit' || github.event_name == 'workflow_dispatch'
6363
needs: [ubuntu_22_llvm_prev_jobs]
6464
runs-on: ubuntu-22.04
6565
container:

0 commit comments

Comments
 (0)