From 18978e4c7a923eaa81efc75e823c806692ac504e Mon Sep 17 00:00:00 2001 From: Krzysztof Findeisen Date: Tue, 8 Apr 2025 16:02:35 -0700 Subject: [PATCH] Synchronize rebuilds on all code changes. The init-job and main PP service use a shared deployment hash to identify which collections they can use. However, this only works if they are *both* rebuilt on any changes to the hash. --- .github/workflows/build-init-job.yaml | 12 ++++++++++-- .github/workflows/build-service.yml | 14 ++++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-init-job.yaml b/.github/workflows/build-init-job.yaml index 1cda349b..1bd5449f 100644 --- a/.github/workflows/build-init-job.yaml +++ b/.github/workflows/build-init-job.yaml @@ -6,28 +6,36 @@ on: - main - 'releases/**' paths: + # Build workflow changes - '.github/workflows/build-init-job.yaml' - '.github/workflows/_matrix-gen.yaml' - '.github/actions/**' + - 'init-output-run/Dockerfile' + # Code (deployment ID) changes - 'bin.src/write_init_outputs.py' - 'config/**' - 'pipelines/**' + - 'python/activator/**' - 'python/initializer/**' - 'python/shared/**' + # Need to re-test - 'tests/**' - - 'init-output-run/Dockerfile' pull_request: paths: + # Build workflow changes - '.github/workflows/build-init-job.yaml' - '.github/workflows/_matrix-gen.yaml' - '.github/actions/**' + - 'init-output-run/Dockerfile' + # Code (deployment ID) changes - 'bin.src/write_init_outputs.py' - 'config/**' - 'pipelines/**' + - 'python/activator/**' - 'python/initializer/**' - 'python/shared/**' + # Need to re-test - 'tests/**' - - 'init-output-run/Dockerfile' workflow_dispatch: permissions: diff --git a/.github/workflows/build-service.yml b/.github/workflows/build-service.yml index c8687354..c280e0f9 100644 --- a/.github/workflows/build-service.yml +++ b/.github/workflows/build-service.yml @@ -6,26 +6,36 @@ on: - main - 'releases/**' paths: + # Build workflow changes - '.github/workflows/build-service.yml' - '.github/workflows/_matrix-gen.yaml' - '.github/actions/**' + - 'Dockerfile' + # Code (deployment ID) changes + - 'bin.src/write_init_outputs.py' - 'config/**' - 'pipelines/**' - 'python/activator/**' + - 'python/initializer/**' - 'python/shared/**' + # Need to re-test - 'tests/**' - - 'Dockerfile' pull_request: paths: + # Build workflow changes - '.github/workflows/build-service.yml' - '.github/workflows/_matrix-gen.yaml' - '.github/actions/**' + - 'Dockerfile' + # Code (deployment ID) changes + - 'bin.src/write_init_outputs.py' - 'config/**' - 'pipelines/**' - 'python/activator/**' + - 'python/initializer/**' - 'python/shared/**' + # Need to re-test - 'tests/**' - - 'Dockerfile' workflow_dispatch: permissions: