Skip to content

Commit

Permalink
Merge pull request #22 from m2lines/jbusecke-patch-1
Browse files Browse the repository at this point in the history
Fix preview permissions
  • Loading branch information
LaureZanna authored Feb 27, 2024
2 parents 933a032 + 12eb36c commit 03dd6ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/trigger-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ on:
types:
- requested
- completed

permissions:
pull-requests: write
contents: write

jobs:
find-pull-request:
uses: ProjectPythia/cookbook-actions/.github/workflows/find-pull-request.yaml@main
Expand All @@ -20,6 +22,7 @@ jobs:
destination_dir: _preview/${{ needs.find-pull-request.outputs.number }} # deploy to subdirectory labeled with PR number
is_preview: 'true'
publish_dir: "src/_build/html"
github_token: ${{ secrets.GITHUB_TOKEN }}

preview-comment:
needs: find-pull-request
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.ipynb_checkpoints
__pycache__
.vscode/
_build/
.DS_Store
# Following are generated by notebooks and do not need to be version controlled
*.jpeg
Expand Down

0 comments on commit 03dd6ca

Please sign in to comment.