Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add skip-argo and skip-sync options [skip-argo] [skip-sync] TDE-1058 #283

Merged
merged 1 commit into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ jobs:

- name: Submit Added/Changed Parameter Files
id: modified-files
if: ${{ !contains(github.event.head_commit.message, '[skip-argo]')}}
run: |
# AM = Include: Added, Modified
mapfile -d '' modified_parameter_files < <(git diff --name-only --diff-filter=AM -z ${{ github.event.before }} ${{ github.event.after }} -- "publish-odr-parameters/*.yaml")
Expand All @@ -131,6 +132,7 @@ jobs:

# Sync STAC files only on push to 'master'
- name: Sync STAC
if: ${{ !contains(github.event.head_commit.message, '[skip-sync]')}}
uses: docker://ghcr.io/linz/argo-tasks:v3
with:
args: stac-sync /github/workspace/stac/ s3://nz-elevation/
4 changes: 4 additions & 0 deletions publish-odr-parameters/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

This folder contains the parameter yaml files generated by the `publish-odr` argo workflow.

> [!Tip]
> Add `[skip-argo]` to your PR title/body if you do not want to deploy changes to the ODR
> Add `[skip-sync]` to your PR title/body if you do not want to sync the catalog/collections to the ODR

## How it Works:

### Step 1: Submit the publish-odr workflow using Argo
Expand Down
Loading