Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
XudongLiuHarold committed Mar 7, 2024
1 parent fec9796 commit 09fcebd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bump-k8s-for-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Bump latest k8s.io dependencies
run: |
cd test/e2e
bash ./hack/bump-k8s-dep.sh e2e
bash ../../hack/bump-k8s-dep.sh test-e2e
cd ../..
- name: Configure Git
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/bump-k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@ jobs:
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions-bot@example.com"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Check for changes and update version
id: changes
run: |
echo "changes=$(git diff)" >> $GITHUB_OUTPUT
git_diff_output=$(git diff)
if [ -n "$git_diff_output" ]; then
echo "changes=true" >> $GITHUB_OUTPUT
fi
- name: Create PR
if: steps.changes.outputs.changes
Expand Down
2 changes: 1 addition & 1 deletion hack/bump-k8s-dep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ set -o pipefail

# Check if the first input does not exist or is not equal to "test"
dependencies=("k8s.io/api" "k8s.io/client-go" "k8s.io/apimachinery" "k8s.io/klog/v2")
if [ -z "${1:-}" ] || [ "${1}" != "test" ]; then
if [ -z "${1:-}" ] || [ "${1}" != "test-e2e" ]; then
dependencies+=("k8s.io/cloud-provider" "k8s.io/code-generator" "k8s.io/component-base")
fi

Expand Down

0 comments on commit 09fcebd

Please sign in to comment.