-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workflow file to automatically update papers
- Loading branch information
1 parent
008e854
commit 8d6e9bf
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Try to automatically update papers from INSPIRE | ||
|
||
name: Attempt to automatically update papers | ||
|
||
on: | ||
workflow_dispatch: # This allows us to manually trigger | ||
schedule: | ||
# Hour 11 of every day | ||
- cron: "0 11 * * *" | ||
|
||
jobs: | ||
update: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install sxs dateparser | ||
- name: Run inspSXSUpdateByDate | ||
run: | | ||
cd _papers | ||
python inspSXSUpdateByDate.py | ||
- name: Create PR | ||
uses: peter-evans/create-pull-request@v7 | ||
with: | ||
branch: gh-action/autoINSPUpdate | ||
add-paths: _papers/*.md | ||
delete-branch: true | ||
commit-message: Auto paper update | ||
title: "Attempt to auto update papers from INSPIRE" | ||
body: "New paper updates found!" |