Skip to content

Commit c8485c4

Browse files
committed
update ci config
1 parent 0d2b06e commit c8485c4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/oss-upload.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: OSS Upload
22

33
on:
4-
push:
5-
tags:
6-
- kafka*
4+
workflow_run:
5+
workflows: ["Release Charts"]
6+
types: [completed]
7+
branches:
8+
- main
79

810
jobs:
911
release:
@@ -36,7 +38,7 @@ jobs:
3638
git show remotes/origin/gh-pages:index.yaml > /tmp/index.yaml
3739
head -n50 /tmp/index.yaml
3840
if head -n50 /tmp/index.yaml | grep -E '^apiVersion:' ; then
39-
sed -i 's%- https://github\.com/sir5kong%- https://'${MIRROR_HOST}'/github/sir5kong%g' /tmp/index.yaml
41+
sed -i 's%- https://github\.com/%- https://'${MIRROR_HOST}'/github/%g' /tmp/index.yaml
4042
$ALIOSS cp -f /tmp/index.yaml \
4143
"oss://${OSS_BUCKET}/kafka/index.yaml" \
4244
--meta content-type:text/yaml

0 commit comments

Comments
 (0)