Skip to content

Commit

Permalink
Fixed syncing
Browse files Browse the repository at this point in the history
  • Loading branch information
timarnoldev authored Feb 18, 2024
1 parent 1bb33b2 commit 531d22e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .github/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
MINT-EC-KI-Cluster/platform:
- source: docs/
dest: pages/{{ github.event.repository.name }}/
19 changes: 4 additions & 15 deletions .github/workflows/sync_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,8 @@ jobs:
- name: Checkout source repository
uses: actions/checkout@v2

- name: Create destination folder if not exists
run: |
DEST_FOLDER="pages/${{ github.repository }}"
if [ ! -d "$DEST_FOLDER" ]; then
mkdir -p "$DEST_FOLDER"
fi
- name: Sync docs to another repository
uses: repo-sync/[email protected]
- name: Sync files
uses: BetaHuhn/repo-file-sync-action@v1
with:
source_repo_token: ${{ steps.generate-token.outputs.token }}
source_repo_name: ${{ github.repository }}
source_folder: "docs"
destination_repo_token: ${{ steps.generate-token.outputs.token }}
destination_repo_name: "MINT-EC-KI-Cluster/platform"
destination_folder: "pages/${{ github.repository }}"
GH_PAT: ${{ steps.generate-token.outputs.token }}
CONFIG_PATH: .github/sync.yml

0 comments on commit 531d22e

Please sign in to comment.