Skip to content

Commit

Permalink
feat(workflows): add file synchronise workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusSkytte committed Dec 21, 2023
1 parent 2557ed3 commit ac1c18a
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/sync.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
ssi-dk/diseasystore:
- .github/workflows/synchronise-files.yaml
- .github/sync.yaml

- R/0_linters.R
- tests/testthat/test-0_linters.R

- R/0_R6_utils.R
- tests/testthat/test-0_R6_utils.R

- R/0_documentation.R
- tests/testthat/test-0_documentation.R

- tests/testthat/test-0_return.R
- tests/testthat/test-0_examples.R


ssi-dk/diseasy:
- .github/workflows/synchronise-files.yaml
- .github/sync.yaml

- R/0_linters.R
- tests/testthat/test-0_linters.R

- R/0_R6_utils.R
- tests/testthat/test-0_R6_utils.R

- R/0_documentation.R
- tests/testthat/test-0_documentation.R

- tests/testthat/test-0_return.R
- tests/testthat/test-0_examples.R
21 changes: 21 additions & 0 deletions .github/workflows/synchronise-files.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 🔄 Sync diseasyverse files
on:
push:
branches:
- sync_diseasyverse_files
workflow_dispatch:

jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@master
- name: Run GitHub File Sync
uses: BetaHuhn/repo-file-sync-action@v1
with:
GH_PAT: ${{ secrets.GH_PAT }}
CONFIG_PATH: .github/sync.yaml
COMMIT_PREFIX: "chore: sync"
PR_BODY: Automatically synchronise files between diseasyverse repositories
DRY_RUN: true

0 comments on commit ac1c18a

Please sign in to comment.