Skip to content

Commit

Permalink
fix: update changed-files version in workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Malina <[email protected]>
  • Loading branch information
mmalina committed Apr 25, 2023
1 parent 9321d49 commit 22532a2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 21 deletions.
45 changes: 25 additions & 20 deletions .github/workflows/tekton_bundle_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,29 +25,34 @@ jobs:
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@v22.2
uses: tj-actions/changed-files@v35
with:
files: |
catalog/*/*/*/*.yaml
- name: Create mock kube config
run: .github/scripts/mock_kube_config.sh
shell: bash
- name: Install tkn
- name: Show changed files
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
echo $ALL_CHANGED_FILES
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
GITHUB_SHA: ${{ github.sha }}
GITHUB_REFNAME: ${{ github.ref_name }}
IMAGE_REGISTRY: ${{ env.IMAGE_REGISTRY }}
IMAGE_NAMESPACE: ${{ env.IMAGE_NAMESPACE }}
QUAY_API_TOKEN: ${{ env.API_TOKEN }}
# - name: Create mock kube config
# run: .github/scripts/mock_kube_config.sh
# shell: bash
# - name: Install tkn
# 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
# env:
# ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
# GITHUB_SHA: ${{ github.sha }}
# GITHUB_REFNAME: ${{ github.ref_name }}
# IMAGE_REGISTRY: ${{ env.IMAGE_REGISTRY }}
# IMAGE_NAMESPACE: ${{ env.IMAGE_NAMESPACE }}
# QUAY_API_TOKEN: ${{ env.API_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
Tekton task that extracts sboms from pull specs and pushes them to Pyxis.
params:
- name: mappedSnapshot
description: The mapped snapshot in JSON format
description: The mapped snapshot in JSON format bla
type: string
- name: containerImageIDs
description: Space separated list of Pyxis image IDs
Expand Down

0 comments on commit 22532a2

Please sign in to comment.