更新docs-translate.yaml,修改分支忽略规则以排除main分支 #766
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/*" |