Skip to content

Commit

Permalink
chore: checkout code with token
Browse files Browse the repository at this point in the history
  • Loading branch information
JashBook committed Dec 23, 2024
1 parent 704d263 commit d63ecb4
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/release-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,8 @@ jobs:
- name: checkout branch ${{ github.ref_name }}
uses: actions/checkout@v4
with:
repository: "${{ github.repository }}"
path: ./
token: ${{ env.GITHUB_TOKEN }}
ref: "${{ github.ref_name }}"
ref: ${{ github.ref_name }}

# - name: install lib
# run: |
Expand Down Expand Up @@ -128,9 +126,6 @@ jobs:
run: |
echo "copy kbcli user docs to kubeblocks docs"
cp -r ${{ github.workspace }}/kbcli/docs/user_docs/cli/* ${{ github.workspace }}/docs/user_docs/cli/
git fetch --prune --unshallow
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
FILE_CHANGES=`git diff --name-only ${{ github.sha }}`
git add ${{ github.workspace }}/docs/user_docs/cli/*
if [[ -n "$FILE_CHANGES" ]]; then
Expand Down Expand Up @@ -211,10 +206,8 @@ jobs:
uses: ad-m/github-push-action@master
if: ${{ steps.update_kbcli_doc.outputs.file_changes && github.ref_name != 'main' }}
with:
repository: "${{ github.repository }}"
directory: ./
github_token: ${{ env.GITHUB_TOKEN }}
branch: ${{ github.ref }}
branch: ${{ github.ref_name }}

# - name: push tag ${{ inputs.release_version }}
# uses: mathieudutour/[email protected]
Expand Down

0 comments on commit d63ecb4

Please sign in to comment.