From 2236053d4a518d64185b8d850446ceed9c152c6b Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Fri, 13 Sep 2024 15:56:56 +0200 Subject: [PATCH] ci(devops): :construction_worker: add synching of files (#4) ## Description Adding synching capabilities. ## Reviewer Focus This PR needs a quick review. --- .github/sync.yml | 19 +++++++++++++++++++ .github/workflows/sync-files.yml | 25 +++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .github/sync.yml create mode 100644 .github/workflows/sync-files.yml diff --git a/.github/sync.yml b/.github/sync.yml new file mode 100644 index 0000000..18bac12 --- /dev/null +++ b/.github/sync.yml @@ -0,0 +1,19 @@ +group: + # All repositories + - files: + - source: .github/workflows/assign-pr-to-creator.yml + dest: .github/workflows/assign-pr-to-creator.yml + repos: | + rostools/cog-flow-intro + rostools/r-pkg-intro + rostools/r-cubed-intro + rostools/r-cubed-intermediate + rostools/r-cubed-advanced + rostools/rostools + rostools/r3 + rostools/r3admin + rostools/r-cubed + rostools/r3-theme + rostools/admin + rostools/prodigenr + diff --git a/.github/workflows/sync-files.yml b/.github/workflows/sync-files.yml new file mode 100644 index 0000000..b163499 --- /dev/null +++ b/.github/workflows/sync-files.yml @@ -0,0 +1,25 @@ +name: Sync files across repos +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@main + + - name: Run GitHub File Sync + uses: BetaHuhn/repo-file-sync-action@v1 + with: + GH_PAT: ${{ secrets.SYNC_PAT }} + ASSIGNEES: lwjohnst86 + IS_FINE_GRAINED: true + GIT_USERNAME: lwjohnst86 + GIT_EMAIL: lwjohnst@gmail.com + COMMIT_PREFIX: "chore(sync): :hammer: " + BRANCH_PREFIX: chore +