From 62a4fbf07b4aefb6eddf90e466e33f7789f3efcb Mon Sep 17 00:00:00 2001 From: Mustafa Ozhan Date: Wed, 17 Jan 2024 14:26:17 +0200 Subject: [PATCH] [Oztechan/Global#86] Add file sync back --- .github/sync.yml | 81 ++++++++++++++++++++++++++++++++++++ .github/workflows/config.yml | 19 +++++++++ 2 files changed, 100 insertions(+) create mode 100644 .github/sync.yml create mode 100644 .github/workflows/config.yml diff --git a/.github/sync.yml b/.github/sync.yml new file mode 100644 index 0000000..1a8e91b --- /dev/null +++ b/.github/sync.yml @@ -0,0 +1,81 @@ +group: + # Docs + - files: + - source: docs/ + template: true + repos: | + Oztechan/CCC + Oztechan/Tracefit + SubMob/BaseMob + SubMob/ScopeMob + SubMob/LogMob + SubMob/ParserMob + + # .github + - files: + - source: .github/auto_assign.yml + - source: .github/CODEOWNERS + repos: | + Oztechan/CCC + Oztechan/Tracefit + + # Code Quality + - files: + - source: codecov.yml + - source: detekt.yml + repos: | + Oztechan/CCC + Oztechan/Tracefit + + # Dependency Update + - files: + - source: renovate.json + repos: | + Oztechan/CCC + Oztechan/Tracefit + SubMob/BaseMob + SubMob/ScopeMob + SubMob/LogMob + SubMob/ParserMob + +Oztechan/CCC: + - source: docs/ + template: + repository: + name: 'CCC' + owner: "Oztechan" + +Oztechan/TraceFit: + - source: docs/ + template: + repository: + name: 'TraceFit' + owner: "Oztechan" + +SubMob/BaseMob: + - source: docs/ + template: + repository: + name: 'BaseMob' + owner: "SubMob" + +SubMob/ScopeMob: + - source: docs/ + template: + repository: + name: 'ScopeMob' + owner: "SubMob" + +SubMob/LogMob: + - source: docs/ + template: + repository: + name: 'LogMob' + owner: "SubMob" + +SubMob/ParserMob: + - source: docs/ + template: + repository: + name: 'ParserMob' + owner: "SubMob" \ No newline at end of file diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml new file mode 100644 index 0000000..b90ca4a --- /dev/null +++ b/.github/workflows/config.yml @@ -0,0 +1,19 @@ +name: Global Config Update +on: + push: + branches: + - develop + workflow_dispatch: +jobs: + GlobalConfigUpdate: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4.1.1 + + - name: GitHub File Sync + uses: BetaHuhn/repo-file-sync-action@v1.21.0 + with: + GH_PAT: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + PR_LABELS: "config" + COMMIT_PREFIX: "[Oztechan/Global#4] Global config update"