diff --git a/.github/workflows/notify.yml b/.github/workflows/notify.yml index 73844ea..39d26cd 100644 --- a/.github/workflows/notify.yml +++ b/.github/workflows/notify.yml @@ -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: | diff --git a/src/slack_annotations/core.py b/src/slack_annotations/core.py index 9ed4210..332f686 100644 --- a/src/slack_annotations/core.py +++ b/src/slack_annotations/core.py @@ -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)