Skip to content

Commit

Permalink
debug default branch
Browse files Browse the repository at this point in the history
  • Loading branch information
tkdchen committed Dec 23, 2024
1 parent 7cfd3e5 commit 891a395
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/check-task-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ jobs:
echo "changed files:"
echo ${ALL_CHANGED_FILES}
echo
git log main
DEFAULT_BRANCH=$(git remote show origin | awk '/HEAD branch/ {print $NF}')
echo "default branch: $DEFAULT_BRANCH"
git log $DEFAULT_BRANCH
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1
- name: Run check
Expand Down
3 changes: 2 additions & 1 deletion hack/validate-migration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ declare -r BUILD_PIPELINE_CONFIG=https://raw.githubusercontent.com/redhat-appstu
WORK_DIR=$(mktemp -d --suffix=-validate-migrations)
declare -r WORK_DIR

declare -r DEFAULT_BRANCH=main
: "${DEFAULT_BRANCH:=main}"
declare -r DEFAULT_BRANCH

# By default, do not run with a real kubernetes cluster.
: "${IN_CLUSTER:=""}"
Expand Down

0 comments on commit 891a395

Please sign in to comment.