Skip to content

更新doc-translate.js,使用环境变量替代硬编码的API密钥,并移除调试输出 #773

更新doc-translate.js,使用环境变量替代硬编码的API密钥,并移除调试输出

更新doc-translate.js,使用环境变量替代硬编码的API密钥,并移除调试输出 #773

Workflow file for this run

name: Mirror to CNB Repo
on: [ push, delete, create ]
jobs:
git-mirror:
if: github.repository == 'friendsofhyperf/components'
runs-on: ubuntu-latest
steps:
- name: Push Mirror
if: github.repository_owner == 'friendsofhyperf'
env:
SOURCE_REPO: 'https://github.com/friendsofhyperf/components.git'
DESTINATION_REPO: 'https://cnb:${{ secrets.CNB_TOKEN }}@cnb.cool/friendsofhyperf/components.git'
run: |
git clone --mirror "$SOURCE_REPO" && cd `basename "$SOURCE_REPO"`
git push -f --prune "$DESTINATION_REPO" "refs/heads/*:refs/heads/*" "refs/tags/*:refs/tags/*"