Update Catalog Details
The Update Catalog Details workflow can run on any repository. It is intended to update only the Catalog metadata and details without uploading new versions of artifacts.
This is an optional workflow. Running the regular Automation script or connector reusable workflows will perform the same actions, but with additional quality control and the ability to release new artifacts.
The following actions will be performed:
- Create or extend catalog.yml
- Commit and push auto-generated-catalog.yml
- Retrieve readme
- Retrieve images
- Upload to Catalog
Note
This workflow makes use of the GitHub to Catalog tool. For this tool to work, the GitHub repository must infer the Catalog item type using either naming conventions or GitHub topics.
How to use
From within your own workflow .yml files, you can call a reusable workflow by adding a job that references the location on GitHub of the .yml file:
For example:
jobs:
CI:
uses: SkylineCommunications/_ReusableWorkflows/.github/workflows/Update Catalog Details Workflow.yml@main
For most reusable workflows, several arguments and secrets need to be provided. You can find out which arguments and secrets by opening the reusable workflow and looking at the "inputs:" and "secrets:" sections located at the top of the file.
However, we recommend that you instead use one of the available starter workflows that in turn call one of our reusable workflows and that are preconfigured with most of the arguments.
For example:
jobs:
Catalog:
uses: SkylineCommunications/_ReusableWorkflows/.github/workflows/Update Catalog Details Workflow.yml@main
secrets:
# The API-key: generated in the DCP Admin app (https://admin.dataminer.services/) as authentication for a certain DataMiner Organization or Agent.
api-key: ${{ secrets.DATAMINER_DEPLOY_KEY }}
Create or extend catalog.yml
- Uses the
github-to-catalog-yaml
tool to either create a new catalog.yml file or update an existing one. This file defines catalog metadata based on the repository details. For more information, see the GitHubToCatalogYaml README.
Commit and push auto-generated-catalog.yml
- Checks if there are changes to the auto-generated-catalog.yml. If so, it commits the changes and pushes them back to the repository.
Retrieve readme
- Searches for a
README.md
file within the repository. If found, it retrieves its path for use in Catalog updates.
Retrieve images
- Looks for an
Images
folder, initially near theREADME.md
or, if not found, in the workspace. This folder is intended to store image assets for the catalog.
Upload to Catalog
- Uploads the collected catalog.yml,
README.md
, and images to the DataMiner Catalog using the specified API key for authentication.