-
Notifications
You must be signed in to change notification settings - Fork 28
42 lines (36 loc) · 1.09 KB
/
auto_insp_update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 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
# Only run on upstream, not on each fork
if: github.repository_owner == 'sxs-collaboration'
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
branch-suffix: timestamp
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!"