Skip to content

Commit

Permalink
fix wiki update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Jul 3, 2024
1 parent 3c60b8c commit d39553b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 17 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/_shared-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
name: Build linux/amd64 binary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}

Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
name: Build linux/arm64 binary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}

Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
name: Build windows/amd64 binary
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}

Expand Down Expand Up @@ -154,7 +154,7 @@ jobs:
name: Build macos/amd64 binary
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}

Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:
name: Build macos/arm64 binary
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}

Expand Down Expand Up @@ -224,7 +224,7 @@ jobs:
if: ${{ inputs.docker }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}

Expand Down Expand Up @@ -272,7 +272,7 @@ jobs:
if: ${{ inputs.docker }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- name: Get build version
Expand Down Expand Up @@ -321,7 +321,7 @@ jobs:
if: ${{ inputs.docker }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- name: Get build version
Expand Down Expand Up @@ -356,7 +356,7 @@ jobs:
matrix:
tag: ${{ fromJSON(inputs.additional_tags) }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- name: Get build version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_shared-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
name: Run code checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# setup global dependencies
- name: Set up go
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/build-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout base code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: code
- name: Checkout wiki code
uses: actions/checkout@v2
with:
repository: ${{github.repository}}.wiki
path: wiki
- name: Generate wiki from docs
env:
WIKI_TOKEN: ${{ secrets.WIKI_TOKEN }}
run: |
git clone https://$WIKI_TOKEN@github.com/${{ github.event.repository.owner.name }}/${{ github.event.repository.name }}.wiki.git ./wiki
- name: Generate wiki from docs
run: |
touch ./wiki.md
Expand All @@ -66,6 +67,8 @@ jobs:
cp ./wiki.md ./wiki/Home.md
- name: Push to wiki
env:
WIKI_TOKEN: ${{ secrets.WIKI_TOKEN }}
run: |
cd wiki
git config --local user.email "action@github.com"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
needs: [build_binaries]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 100
ref: ${{ github.sha }}
Expand Down

0 comments on commit d39553b

Please sign in to comment.