Skip to content

Commit e15bb0c

Browse files
authored
RHOAIENG-25226: don't build images if we are only changing manifests (#1124)
1 parent 4a355f1 commit e15bb0c

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

.github/workflows/build-notebooks-pr-rhel.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
"name": "Build Notebooks (pr, RHEL images)"
33
"on":
44
"pull_request_target":
5+
"paths-ignore":
6+
# Don't build images if the only thing that changed is image digests in manifests
7+
- manifests/base/params-latest.env
8+
- manifests/base/params.env
9+
# In fact, skip the build if there are only changes in manifests and nowhere else
10+
- manifests/**
511

612
# BEWARE: This GitHub Actions workflow runs on pull_request_target, meaning it has access to our secrets
713
# see https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-secrets

.github/workflows/build-notebooks-pr.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
"name": "Build Notebooks (pr)"
33
"on":
44
"pull_request":
5+
"paths-ignore":
6+
# Don't build images if the only thing that changed is image digests in manifests
7+
- manifests/base/params-latest.env
8+
- manifests/base/params.env
9+
# In fact, skip the build if there are only changes in manifests and nowhere else
10+
- manifests/**
511

612
permissions:
713
contents: read

.github/workflows/build-notebooks-push.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
"name": "Build Notebooks (push)"
33
"on":
44
"push":
5+
"paths-ignore":
6+
# Don't build images if the only thing that changed is image digests in manifests
7+
- manifests/base/params-latest.env
8+
- manifests/base/params.env
9+
# In fact, skip the build if there are only changes in manifests and nowhere else
10+
- manifests/**
511
"workflow_dispatch":
612
"schedule":
713
- "cron": "0 2 * * *"

0 commit comments

Comments
 (0)