Skip to content

Commit

Permalink
ci: add skip-argo and skip-sync options
Browse files Browse the repository at this point in the history
  • Loading branch information
MDavidson17 committed Mar 26, 2024
1 parent 20bbcad commit b579c56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
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

0 comments on commit b579c56

Please sign in to comment.