-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move Update apis doc ahead Update kbcli doc (#8713)
(cherry picked from commit 326930b)
- Loading branch information
Showing
1 changed file
with
23 additions
and
23 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 |
---|---|---|
|
@@ -113,6 +113,29 @@ jobs: | |
with: | ||
go-version: "${{ env.GO_VERSION }}" | ||
|
||
- name: Update apis doc | ||
id: update_apis_doc | ||
run: | | ||
make doc | ||
FILE_CHANGES=`git diff --name-only ${{ github.sha }}` | ||
if [[ -n "$FILE_CHANGES" ]]; then | ||
echo $FILE_CHANGES | ||
git config --local user.name "$GITHUB_ACTOR" | ||
git config --local user.email "[email protected]" | ||
git commit -a -m "chore: auto update apis docs" | ||
fi | ||
echo file_changes=$FILE_CHANGES >> $GITHUB_OUTPUT | ||
RELEASE_COMMIT="$(git rev-parse HEAD)" | ||
echo 'RELEASE_COMMIT='${RELEASE_COMMIT} >> $GITHUB_ENV | ||
- name: Checkout kubeblocks-addons ${{ github.ref_name }} | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: apecloud/kubeblocks-addons | ||
path: kubeblocks-addons | ||
ref: ${{ github.ref_name }} | ||
|
||
- name: checkout kbcli code | ||
uses: actions/checkout@v4 | ||
with: | ||
|
@@ -140,29 +163,6 @@ jobs: | |
RELEASE_COMMIT="$(git rev-parse HEAD)" | ||
echo 'RELEASE_COMMIT='${RELEASE_COMMIT} >> $GITHUB_ENV | ||
- name: Update apis doc | ||
id: update_apis_doc | ||
run: | | ||
make doc | ||
FILE_CHANGES=`git diff --name-only ${{ github.sha }}` | ||
if [[ -n "$FILE_CHANGES" ]]; then | ||
echo $FILE_CHANGES | ||
git config --local user.name "$GITHUB_ACTOR" | ||
git config --local user.email "[email protected]" | ||
git commit -a -m "chore: auto update apis docs" | ||
fi | ||
echo file_changes=$FILE_CHANGES >> $GITHUB_OUTPUT | ||
RELEASE_COMMIT="$(git rev-parse HEAD)" | ||
echo 'RELEASE_COMMIT='${RELEASE_COMMIT} >> $GITHUB_ENV | ||
- name: Checkout kubeblocks-addons ${{ github.ref_name }} | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: apecloud/kubeblocks-addons | ||
path: kubeblocks-addons | ||
ref: ${{ github.ref_name }} | ||
|
||
- name: upgrade addons version | ||
id: upgrade_addon_version | ||
run: | | ||
|