Skip to content

Commit

Permalink
Merge pull request #26 from tudat-team/feature/git_auto_sync
Browse files Browse the repository at this point in the history
Automated synchronization of directories over several repositories
  • Loading branch information
DominicDirkx authored Aug 22, 2023
2 parents 83780c7 + 754f823 commit ca6b9f9
Show file tree
Hide file tree
Showing 5 changed files with 1,334 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tudat-team/tudat-space:
- source: estimation/
dest: docs/source/_src_getting_started/_src_examples/notebooks/estimation/
deleteOrphaned: true
22 changes: 22 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Sync Files on Merge
on:
pull_request:
branches:
- master
types: [closed]
workflow_dispatch:
jobs:
sync:
if: github.event.pull_request.merged == true
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 }}
PR_BODY: Please manually remove all non *.ipynp-files.
COMMIT_BODY: "Auto-update tudat-space examples"
REVIEWERS: DominicDirkx

Loading

0 comments on commit ca6b9f9

Please sign in to comment.