-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update github actions Signed-off-by: xudong liu <[email protected]>
- Loading branch information
1 parent
fec9796
commit 502fc12
Showing
3 changed files
with
21 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,27 +22,30 @@ 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 | ||
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 add test/e2e/go.mod test/e2e/go.sum | ||
git commit -sm "Bump kubernetes group dependencies updates for e2e test" | ||
git push origin "$HEAD_BRANCH" | ||
gh pr create --base master --title ":seedling: Bump the kubernetes group updates for e2e test" --body "This is an automatic generated pull request to bump the latest k8s dependencies for e2e test." | ||
gh pr create --base master --title ":seedling: Bump the kubernetes group updates for e2e test" --label "ok-to-test" --body "This is an automatic generated pull request to bump the latest k8s dependencies for e2e test." | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 "[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 | ||
|
@@ -40,6 +43,6 @@ jobs: | |
git add go.mod go.sum | ||
git commit -sm "Bump Kubernetes group dependencies updates" | ||
git push origin "$HEAD_BRANCH" | ||
gh pr create --base master --title ":seedling: Bump the Kubernetes group updates " --body "This is an automatically generated pull request to bump the latest k8s dependencies." | ||
gh pr create --base master --title ":seedling: Bump the Kubernetes group updates " --label "ok-to-test" --body "This is an automatically generated pull request to bump the latest k8s dependencies." | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters