Files
sealos/.github/workflows/sync_code.yml
T
2023-04-04 14:17:01 +08:00

27 lines
713 B
YAML

name: Sync Code
on:
push:
branches:
- main
paths:
- staging/src/github.com/labring/**
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run GitHub File Sync
# Can update to v1 when https://github.com/BetaHuhn/repo-file-sync-action/issues/168 is resolved
uses: BetaHuhn/repo-file-sync-action@v1.16.5
with:
GH_PAT: ${{ secrets.GH_PAT }}
CONFIG_PATH: .github/sync_code.yml
ORIGINAL_MESSAGE: true
SKIP_PR: true
COMMIT_EACH_FILE: false
GIT_EMAIL: "sealos-ci-robot@sealos.io"
GIT_USERNAME: "sealos-ci-robot"