Update site data #1614
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
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] |