-
Notifications
You must be signed in to change notification settings - Fork 158
42 lines (42 loc) · 1.53 KB
/
site-updater.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
name: Update site data
on:
workflow_dispatch: {}
schedule:
- cron: "1 0 * * *"
push:
branches:
- main
jobs:
update:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
repository: "wonderfulsoftware/webring-site-data"
ssh-key: ${{ secrets.WEBRING_SITE_DATA_DEPLOY_KEY }}
path: tmp/webring-site-data
- uses: actions/checkout@v2
with:
repository: "wonderfulsoftware/webring-site-screenshots"
ssh-key: ${{ secrets.WEBRING_SITE_SCREENSHOTS_DEPLOY_KEY }}
path: tmp/webring-site-screenshots
- uses: actions/setup-node@v1
with:
node-version: 14.x
- run: yarn
- run: node automation/site-updater
env:
ENCRYPTION_SECRET: ${{ secrets.ENCRYPTION_SECRET }}
SITE_FETCHER_API_KEY: ${{ secrets.SITE_FETCHER_API_KEY }}
- run: node automation/feed-updater
- run: cd tmp/webring-site-screenshots && git add -A && (git commit -m "$(cat ../webring-site-screenshots-commit-message)" || true) && git push
env:
GIT_COMMITTER_NAME: GitHub Actions
GIT_AUTHOR_NAME: GitHub Actions
EMAIL: github-actions[bot]@users.noreply.github.com
- run: cd tmp/webring-site-data && git add -A && (git commit -m "$(cat ../webring-site-data-commit-message)" || true) && git push
env:
GIT_COMMITTER_NAME: dtinth-bot
GIT_AUTHOR_NAME: dtinth-bot
EMAIL: [email protected]