Skip to content

Commit

Permalink
Update GitHub Actions workflow to fix the commit issue
Browse files Browse the repository at this point in the history
  • Loading branch information
shanto268 committed Mar 13, 2024
1 parent c7c2608 commit 15ebf56
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: PaperBot LFL

on:
schedule:
- cron: '0 15 * * *' # Runs at 7 AM PST (UTC-7)
- cron: '0 15 * * *' # Runs at 7 AM PST (UTC-7) [Update this to your desired time]
workflow_dispatch:

jobs:
Expand All @@ -12,6 +12,8 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_PAT}} # Use this

- name: Set up Python
uses: actions/setup-python@v3
Expand All @@ -38,3 +40,9 @@ jobs:
git commit -m "Update previous_titles.txt - $(date)"
git push
fi
env:
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_EMAIL: [email protected]
# Ensure the git commands use the PAT
GIT_HTTPS_USERNAME: shanbro268 # update this
GIT_HTTPS_PASSWORD: ${{ secrets.GH_PAT}} # update this
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# LFL PaperBot
# LFL PaperBot :robot:

[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/LFL-Lab/LFL_PaperBot/CI)](https://github.com/LFL-Lab/LFL_PaperBot/actions)
[![License](https://img.shields.io/github/license/LFL-Lab/LFL_PaperBot)](https://github.com/LFL-Lab/LFL_PaperBot/blob/main/LICENSE)
![WWJD](wwjd.png)

## Overview

Expand Down Expand Up @@ -47,6 +46,14 @@ LFL_PaperBot is an automated tool for monitoring academic publications. It searc
- The action is scheduled to run at a specified time every day.
- On execution, the script `distributor.py` processes the RSS feeds and sends the relevant articles to the specified Slack channel.

**Updates needed for the GitHub Actions workflow:**

- Update the schedule in `schedule.yml` to the desired time.
- Update the `SLACK_TOKEN` secret in the repository settings if the bot user token changes.
- Update the `GH_PAT` to your `PAT_NAME` that has at least the `repo` scope enabled.
- _If you don't have a PAT_: Go to your GitHub settings, then to Developer settings > Personal access tokens > Generate new token. Make sure the token has the `repo` scope.
- Update the `GIT_HTTPS_USERNAME` to your username

## Contributing

To add more keywords, feeds, or authors:
Expand Down
Binary file removed wwjd.png
Binary file not shown.

0 comments on commit 15ebf56

Please sign in to comment.