From 92a74917c7ff3379bb5d0557dbe2577801fe4fad Mon Sep 17 00:00:00 2001 From: Martin Malina Date: Wed, 10 May 2023 15:46:39 +0200 Subject: [PATCH] More stuff --- .github/workflows/tekton_bundle_check.yaml | 21 ++++++++++----------- catalog/task/apply-mapping/0.3/README.md | 19 ------------------- 2 files changed, 10 insertions(+), 30 deletions(-) diff --git a/.github/workflows/tekton_bundle_check.yaml b/.github/workflows/tekton_bundle_check.yaml index 0e10c114a..c28a32e52 100644 --- a/.github/workflows/tekton_bundle_check.yaml +++ b/.github/workflows/tekton_bundle_check.yaml @@ -36,12 +36,16 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 # ∈(2,0) where 0 = all history, and 2 is the minimum. - # - name: Get changed files - # id: changed-files - # uses: tj-actions/changed-files@v35 - # with: - # files: | - # catalog/*/*/*/*.yaml + - name: Get changed dirs + id: changed-files + uses: tj-actions/changed-files@v35 + with: + files: | + catalog/task/*/* + dir_names: "true" + - name: Show changed dirs + run: | + echo ${{ steps.changed-files.outputs.all_changed_files }} # - name: Create mock kube config # run: .github/scripts/mock_kube_config.sh # shell: bash @@ -49,11 +53,6 @@ jobs: # run: | # curl -LO "https://github.com/tektoncd/cli/releases/download/v${TKN_CLI_VERSION}/tektoncd-cli-${TKN_CLI_VERSION}_Linux-64bit.deb" # sudo dpkg -i ./tektoncd-cli-${TKN_CLI_VERSION}_Linux-64bit.deb - # - uses: redhat-actions/podman-login@v1 - # with: - # username: ${{ env.REGISTRY_USER }} - # password: ${{ env.REGISTRY_PASSWORD }} - # registry: ${{ env.IMAGE_REGISTRY }} # - name: push tekton bundles # run: .github/scripts/tkn_push_bundles.sh # shell: bash diff --git a/catalog/task/apply-mapping/0.3/README.md b/catalog/task/apply-mapping/0.3/README.md index 2afc4f7b0..0b8a1913a 100644 --- a/catalog/task/apply-mapping/0.3/README.md +++ b/catalog/task/apply-mapping/0.3/README.md @@ -17,25 +17,6 @@ meant to inform whether a mapped Snapshot is being returned or the original one. | snapshot | The Snapshot in JSON format to apply the mapping to | No | - | | extraConfigPath | The path to the config file containing the mapping | Yes | - | -## Example usage - -This is an example usage of the `apply-mapping` task: - -``` ---- -tasks: - - name: apply-mapping - taskRef: - name: apply-mapping - params: - - name: snapshot - value: '{"components":[{"name":"component1","containerImage":"quay.io/repo/component1:digest"}}]}' - - name: extraConfigPath - value: "path/to/file" - workspaces: - - name: config - workspace: config_workspace -``` ## Changes since 0.2 * Base image was changed from `release-utils` to `release-base-image`