-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (34 loc) · 1.2 KB
/
update-publications.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
name: update-publications
on:
schedule:
- cron: "0 0 1 * *"
workflow_dispatch:
push:
paths:
- "env"
pull_request:
paths:
- "env"
jobs:
update-publications:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Run Docker image and update file
run: |
docker run --env-file env --rm dascalutudor/scholar-scraper:latest > updated-publications.yml
mv updated-publications.yml docs/_data/publications.yml && echo "mv command successful" || echo "mv command failed"
- name: Configure Git
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
- name: Commit changes
run: |
git add docs/_data/publications.yml
git commit -m "Update publications.yml"
- name: Push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: "main"