Skip to content

Commit

Permalink
ci: add skip-argo and skip-sync options [skip-argo] [skip-sync] TDE-1058
Browse files Browse the repository at this point in the history
 (#283)

added back the skip steps so that if developers need to make fixes to
the repo they have an easy option to do so without accidentally syncing
the stac or running argo.

Example of an accidental sync:
https://github.com/linz/imagery/actions/runs/8413889662/job/23036808911
  • Loading branch information
MDavidson17 authored Mar 26, 2024
1 parent 20bbcad commit 4d1d6d0
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 4d1d6d0

Please sign in to comment.