-
Notifications
You must be signed in to change notification settings - Fork 5
31 lines (30 loc) · 867 Bytes
/
post.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
name: "GH Arxiv Posterbot"
on:
workflow_dispatch: {}
schedule:
- cron: "0 0,13,19 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip' # caching pip dependencies
- run: pip install -r requirements.txt
- name: scrape and run
run: python3 paperbot.py
env:
BSKYBOT: ${{ secrets.BSKYBOT }}
BSKYPWD: ${{ secrets.BSKYPWD }}
- name: Commit and push
uses: EndBug/add-and-commit@v9
with:
add: "."
push: true
default_author: github_actions