Skip to content

Commit

Permalink
Use GITHUB_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
edeno committed Feb 7, 2024
1 parent a071c2b commit 35deff0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/sync-notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Sync Notebooks Folder

on:
schedule:
- cron: '0 0 * * 0' # Runs at 00:00 every Sunday
- cron: '0 0 * * 0' # Runs at 00:00 every Sunday

jobs:
sync-notebooks:
Expand All @@ -11,14 +11,14 @@ jobs:
- name: Checkout destination repository
uses: actions/checkout@v2
with:
token: ${{ secrets.ACCESS_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Sync notebooks from source repository
uses: repo-sync/github-sync@v2
with:
source_repo: "LorenFrankLab/spyglass"
source_branch: "master"
destination_branch: "master"
github_token: ${{ secrets.ACCESS_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
sync: "notebooks/*"
sync_strategy: 'theirs'

0 comments on commit 35deff0

Please sign in to comment.