Skip to content

Commit

Permalink
Add github token to action for sphinx build (#49)
Browse files Browse the repository at this point in the history
* Add github token to action for sphinx build

* Add check
  • Loading branch information
choldgraf authored Sep 17, 2024
1 parent 75c05a1 commit 11d8ed2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ jobs:
run: sphinx-build -v -b dirhtml book book/_build/dirhtml
env:
AIRTABLE_API_KEY: ${{ secrets.AIRTABLE_API_KEY }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}


# Encrypt pages that are only meant for team consumption
- name: Encrypt some pages
Expand Down
5 changes: 4 additions & 1 deletion book/people.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ tags: [remove-cell]
---
# Use the GH CLI to print all of the records in our time off table
cmd = "gh project item-list 39 --owner 2i2c-org -L 500 --format json"
out = run(cmd.split(), text=True, capture_output=True)
try:
out = run(cmd.split(), text=True, capture_output=True, check=True)
except Exception:
raise ValueError(out.stderr)
# Strip the output of all color codes and parse it as JSON, then a dataframe
def strip_ansi(text):
Expand Down

0 comments on commit 11d8ed2

Please sign in to comment.