diff --git a/.github/sync.yml b/.github/sync.yml new file mode 100644 index 0000000..fa0b74d --- /dev/null +++ b/.github/sync.yml @@ -0,0 +1,5 @@ + - files: + - source: src/js/wiki_hover.js + dest: wiki_hover.js + repos: | + ObsidianPublisher/tooltips-internal-link \ No newline at end of file diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 0000000..def5e0a --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,23 @@ +name: Sync Files +on: + workflow_dispatch: + push: + branches: + - master + - main + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v3 + - name: Sync files + uses: BetaHuhn/repo-file-sync-action@latest + with: + GH_PAT: ${{ secrets.GH_PAT }} + SKIP_PR: true + COMMIT_PREFIX: "[SYNC]" + COMMIT_BODY: "Updated from assets" + ORIGINAL_MESSAGE: true +