From 5717280efba01f09c754d98e0e2fde3aab8e4ead Mon Sep 17 00:00:00 2001 From: Wentao Kuang Date: Fri, 22 Sep 2023 12:35:17 +1200 Subject: [PATCH] Add create pr parameter --- workflows/basemaps/imagery-import-cogify.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/workflows/basemaps/imagery-import-cogify.yml b/workflows/basemaps/imagery-import-cogify.yml index 92d05343..ee6c5a34 100644 --- a/workflows/basemaps/imagery-import-cogify.yml +++ b/workflows/basemaps/imagery-import-cogify.yml @@ -27,14 +27,14 @@ spec: - name: source description: Source imagery location "s3://linz-imagery" value: "s3://linz-imagery-staging/test/sample/" - + - name: individual description: "Import as individual imagery." value: false enum: - false - true - + - name: category value: "Rural Aerial Photos" enum: @@ -71,6 +71,12 @@ spec: description: How many items to pass to each create-cog job value: 20 + - name: create-pull-request + value: true + enum: + - true + - false + templates: # Main entrypoint into the workflow - name: main @@ -108,6 +114,7 @@ spec: parameters: - name: target value: "{{ tasks.cogify.outputs.parameters.target }}" + when: "{{workflow.parameters.create-pull-request}} == true" depends: "cogify" # Generate COGs for a specific tile matrix from a given collection of source imagery @@ -347,4 +354,4 @@ spec: - name: secret-vol secret: secretName: github-linz-basemaps-config - defaultMode: 384 \ No newline at end of file + defaultMode: 384