Skip to content

Commit

Permalink
Add create pr parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentao-Kuang committed Sep 22, 2023
1 parent 21b06b4 commit 5717280
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions workflows/basemaps/imagery-import-cogify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -347,4 +354,4 @@ spec:
- name: secret-vol
secret:
secretName: github-linz-basemaps-config
defaultMode: 384
defaultMode: 384

0 comments on commit 5717280

Please sign in to comment.