Skip to content

Commit

Permalink
add auto bump for e2e test
Browse files Browse the repository at this point in the history
Signed-off-by: xudong liu <[email protected]>
  • Loading branch information
XudongLiuHarold committed Mar 7, 2024
1 parent 09fcebd commit 5c025e1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/bump-k8s-for-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,20 @@ 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 "[email protected].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
run: |
HEAD_BRANCH="github-actions/auto-bump/k8s-dependencies-$(date +'%Y%m%d%H%M%S')"
HEAD_BRANCH="github-actions/auto-bump/test-e2e-k8s-dependencies-$(date +'%Y%m%d%H%M%S')"
git checkout -b "$HEAD_BRANCH"
git add go.mod go.sum
git commit -sm "Bump kubernetes group dependencies updates for e2e test"
Expand Down

0 comments on commit 5c025e1

Please sign in to comment.