Github Action to publish UMM-S and UMM-T collection associations to CMR.
The UMM JSON file should be in a folder called cmr
in the root
directory of the repo. Collection association files should be in the
cmr
folder and should be named ${env}_associations.txt
where
${env}
is the name of the environment (uat
, ops
, ...)
Required The name of the JSON UMM file.
Required The CMR provider ID.
Required The name of the environment to publish this UMM change
to. Should be uat
, sit
, or ops
Required The version of the service. Will be substituted in to the UMM JSON before pushing to CMR.
Optional API request timeout length in seconds.
Disable CMR association removal during sync event
Either update a umm-s or umm-t in umm defaults to umm-s
To use a association file to add collections to umm
Version of the umm schema to use during updates. Defaults to '1.3.4'
Value to substitute for the .URL.URLValue
key in the umm record. Defaults to environment specific harmony URL
Required Either cmr_user and cmr_pass or token for each environment sit
uat
ops
A Github secret containing CMR username. We recommend this is stored in a Github Secret.
A Github secret containing CMR password. We recommend this is stored in a Github Secret.
A Github secret containing Launchpad token for sit. We recommend this is stored in a Github Secret.
A Github secret containing Launchpad token for uat. We recommend this is stored in a Github Secret.
A Github secret containing Launchpad token for ops. We recommend this is stored in a Github Secret.
- uses: actions/checkout@v2
- name: UMM Updater Step
id: umm-updater
uses: podaac/cmr-umm-updater@0.0.4
with:
umm-s-json: 'cmr/umm.json'
provider: 'POCLOUD'
env: 'uat'
version: '1.2.3'
umm_type: 'umm-s'
env:
cmr_user: ${{secrets.CMR_USER}}
cmr_pass: ${{secrets.CMR_PASS}}
LAUNCHPAD_TOKEN_SIT: ${{secrets.LAUNCHPAD_TOKEN_SIT}}
LAUNCHPAD_TOKEN_UAT: ${{secrets.LAUNCHPAD_TOKEN_UAT}}
LAUNCHPAD_TOKEN_OPS: ${{secrets.LAUNCHPAD_TOKEN_OPS}}