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 ba7d08f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/check-task-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,19 @@ jobs:
ADDED_FILES: ${{ steps.changed-files.outputs.added_files }}
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
set -x
echo "added files:"
echo ${ADDED_FILES}
echo
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 --version
git branch
/usr/bin/git log $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 ba7d08f

Please sign in to comment.