Files
sealos/.github/workflows/sync_code.yml
T

31 lines
854 B
YAML

name: Sync Code
on:
push:
branches:
- main
paths:
- lifecycle/staging/src/github.com/labring/**
- LICENSE
- .github/workflows/sync_code.yml
- .github/sync_code.yml
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- 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
with:
GH_PAT: ${{ secrets.SYNC_CODE_PAT }}
CONFIG_PATH: .github/sync_code.yml
ORIGINAL_MESSAGE: true
SKIP_PR: true
COMMIT_EACH_FILE: false
COMMIT_BODY: "Change-type: patch"
GIT_EMAIL: "sealos-ci-robot@sealos.io"
GIT_USERNAME: "sealos-ci-robot"