Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
seanh committed Nov 6, 2024
1 parent d24394a commit 7158e9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
uses: actions/checkout@v4
- name: Install slack-annotations
run: python -m pipx install .
- run: cat /home/runner/work/slack-annotations/slack-annotations/cache.json
- name: Check for annotations
id: slack_message
run: |
Expand Down
1 change: 1 addition & 0 deletions src/slack_annotations/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def format_annotation(annotation):
return f"{annotation['user_info']['display_name']}: {annotation['text']}"

if annotations and cache_path:
print("Writing cache file")
with open(cache_path, "w") as cache_file:
json.dump({"search_after": annotations[-1]["created"]}, cache_file)

Expand Down

0 comments on commit 7158e9e

Please sign in to comment.