Skip to content

Commit

Permalink
update ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
itboon committed Jun 6, 2023
1 parent 0d2b06e commit c8485c4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/oss-upload.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: OSS Upload

on:
push:
tags:
- kafka*
workflow_run:
workflows: ["Release Charts"]
types: [completed]
branches:
- main

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

0 comments on commit c8485c4

Please sign in to comment.