Skip to content

Commit

Permalink
create required branch explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
tkdchen committed Dec 23, 2024
1 parent 7cfd3e5 commit a98618b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/check-task-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,13 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v45
- name: show files
env:
ADDED_FILES: ${{ steps.changed-files.outputs.added_files }}
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
echo "added files:"
echo ${ADDED_FILES}
echo
echo "changed files:"
echo ${ALL_CHANGED_FILES}
echo
git log main
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1
- name: Run check
run: |
# Require name main
git branch main origin/main
# Make `git branch --show-current` works.
git checkout -b pr-verify
export IN_CLUSTER=1
bash -x ./hack/validate-migration.sh
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 a98618b

Please sign in to comment.