We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2589156 commit f82f9fbCopy full SHA for f82f9fb
.github/workflows/sync-to-cnb.yaml
@@ -0,0 +1,23 @@
1
+name: Sync to CNB.cool
2
+on: [push]
3
+
4
+jobs:
5
+ sync:
6
+ if: github.repository == 'DragonOS-Community/ci-dashboard'
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v3
10
+ with:
11
+ fetch-depth: 0
12
13
+ - name: Sync to CNB Repository
14
+ run: |
15
+ docker run --rm \
16
+ -v ${{ github.workspace }}:${{ github.workspace }} \
17
+ -w ${{ github.workspace }} \
18
+ -e PLUGIN_TARGET_URL="https://cnb.cool/DragonOS-Community/ci-dashboard.git" \
19
+ -e PLUGIN_AUTH_TYPE="https" \
20
+ -e PLUGIN_USERNAME="cnb" \
21
+ -e PLUGIN_PASSWORD=${{ secrets.CNB_GIT_PASSWORD }} \
22
+ -e PLUGIN_FORCE="true" \
23
+ tencentcom/git-sync
0 commit comments