File tree Expand file tree Collapse file tree 8 files changed +19
-19
lines changed Expand file tree Collapse file tree 8 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ jobs:
17
17
bash download.sh
18
18
export SYNC_DIR=docs/docker
19
19
export SYNC_HUB=docker.io/labring
20
- /tmp/repos
20
+ /tmp/cluster-image-docs
21
21
- name : auto generator by aliyun
22
22
run : |
23
23
export SYNC_DIR=docs/aliyun-hk
24
24
export SYNC_HUB=registry.cn-hongkong.aliyuncs.com/labring
25
- /tmp/repos
25
+ /tmp/cluster-image-docs
26
26
- uses : peter-evans/create-pull-request@v5
27
27
with :
28
28
title : ' workflow: Automated Workflow Update for ${{steps.get-current-tag.outputs.tag }}'
37
37
token : ${{ secrets.GH_PAT }}
38
38
reviewers : cuisongliu
39
39
branch-suffix : short-commit-hash
40
- labels : sync-images
40
+ labels : sync-docs
41
41
committer : sealos-ci-robot <sealos-ci-robot@sealos.io>
42
42
author : sealos-ci-robot <sealos-ci-robot@sealos.io>
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
# 仓库名称
4
- repository=" labring-actions/repos "
4
+ repository=" labring-actions/cluster-image-docs "
5
5
6
6
# 获取最新release的版本号
7
- latest_release=$( curl -s " https://api.github.com/repos /$repository /releases/latest" | grep ' "tag_name":' | sed -E ' s/.*"([^"]+)".*/\1/' )
7
+ latest_release=$( curl -s " https://api.github.com/cluster-image-docs /$repository /releases/latest" | grep ' "tag_name":' | sed -E ' s/.*"([^"]+)".*/\1/' )
8
8
# 构建下载链接
9
- download_url=" https://github.com/$repository /releases/download/$latest_release /repos_ ${latest_release# v} _linux_amd64.tar.gz"
9
+ download_url=" https://github.com/$repository /releases/download/$latest_release /cluster-image-docs_ ${latest_release# v} _linux_amd64.tar.gz"
10
10
11
11
# 下载最新release
12
12
wget $download_url
13
13
14
14
# 解压缩下载的文件(如果是tar.gz格式)
15
- tar -zxvf repos_ ${latest_release# v} _linux_amd64.tar.gz repos
15
+ tar -zxvf cluster-image-docs_ ${latest_release# v} _linux_amd64.tar.gz cluster-image-docs
16
16
17
17
# 删除压缩包
18
- rm -rf repos_ ${latest_release# v} _linux_amd64.tar.gz
18
+ rm -rf cluster-image-docs_ ${latest_release# v} _linux_amd64.tar.gz
19
19
20
- chmod a+x repos
20
+ chmod a+x cluster-image-docs
21
21
22
22
mkdir " /tmp"
23
23
24
- mv srepos " /tmp"
24
+ mv cluster-image-docs " /tmp"
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ package generator
19
19
import (
20
20
"context"
21
21
"github.com/cuisongliu/logger"
22
- "github.com/labring-actions/repos /generator/markdown"
23
- "github.com/labring-actions/repos /generator/types"
22
+ "github.com/labring-actions/cluster-image-docs /generator/markdown"
23
+ "github.com/labring-actions/cluster-image-docs /generator/types"
24
24
"golang.org/x/sync/errgroup"
25
25
"os"
26
26
"path/filepath"
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ package markdown
18
18
19
19
import (
20
20
"github.com/cuisongliu/logger"
21
- "github.com/labring-actions/repos /generator/types"
21
+ "github.com/labring-actions/cluster-image-docs /generator/types"
22
22
"html/template"
23
23
"os"
24
24
"path"
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ limitations under the License.
17
17
package markdown
18
18
19
19
import (
20
- "github.com/labring-actions/repos /generator/types"
20
+ "github.com/labring-actions/cluster-image-docs /generator/types"
21
21
"testing"
22
22
)
23
23
Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ import (
21
21
"encoding/json"
22
22
"fmt"
23
23
"github.com/cuisongliu/logger"
24
- "github.com/labring-actions/repos /generator/registry"
25
- "github.com/labring-actions/repos /generator/types"
26
- "github.com/labring-actions/repos /generator/utils"
24
+ "github.com/labring-actions/cluster-image-docs /generator/registry"
25
+ "github.com/labring-actions/cluster-image-docs /generator/types"
26
+ "github.com/labring-actions/cluster-image-docs /generator/utils"
27
27
"golang.org/x/sync/errgroup"
28
28
"strings"
29
29
"sync"
Original file line number Diff line number Diff line change 1
- module github.com/labring-actions/repos
1
+ module github.com/labring-actions/cluster-image-docs
2
2
3
3
go 1.20
4
4
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ limitations under the License.
16
16
17
17
package main
18
18
19
- import "github.com/labring-actions/repos /generator"
19
+ import "github.com/labring-actions/cluster-image-docs /generator"
20
20
21
21
func main () {
22
22
generator .Do ()
You can’t perform that action at this time.
0 commit comments