Skip to content

Update github-actions #1011

Update github-actions

Update github-actions #1011

# yamllint disable-file
# <TEMPLATED FILE!>
# This file comes from the templates at https://github.com/konflux-ci/task-repo-shared-ci.
# Please consider sending a PR upstream instead of editing the file directly.
# See the SHARED-CI.md document in this repo for more details.
name: Check task migrations
"on":
pull_request:
branches: [main]
merge_group:
types: [checks_requested]
jobs:
check:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Create k8s Kind Cluster
uses: helm/kind-action@ef37e7f390d99f746eb8b610417061a60e82a6cc # v1.14.0
with:
cluster_name: kind
- uses: tektoncd/actions/setup-tektoncd@2b126ef971bbfda195d8a6c9b7c4eb3bfda452bf # main
with:
pipeline_version: v1.14.0
- name: Run check
run: |
DEBIAN_FRONTEND=noninteractive \
sudo apt-get install -y --no-install-recommends \
tzdata python3-ruamel.yaml
pip install git+https://github.com/konflux-ci/pipeline-migration-tool --user
kubectl get all -n tekton-pipelines
# Require name main
git branch main origin/main
# Make `git branch --show-current` works.
git checkout -b pr-verify
export IN_CLUSTER=1
bash ./hack/validate-migration.sh