Skip to content

Update data

Update data #587

Workflow file for this run

name: Update data
on:
schedule:
# Runs at 06:00
# https://crontab.guru/#0_6_*_*_*
- cron: '0 6 * * *'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
data:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Update webmentions
env:
WEBMENTION_IO_TOKEN: ${{ secrets.WEBMENTION_IO_TOKEN }}
run: npm run webmentions >> $GITHUB_STEP_SUMMARY
- name: Update Flickr
env:
FLICKR_CONSUMER_KEY: ${{ secrets.FLICKR_CONSUMER_KEY }}
FLICKR_USER_ID: ${{ secrets.FLICKR_USER_ID }}
run: npm run flickr >> $GITHUB_STEP_SUMMARY
- name: Update Pixelfed
env:
PIXELFED_URL: ${{ secrets.PIXELFED_URL }}
PIXELFED_TOKEN: ${{ secrets.PIXELFED_TOKEN }}
run: npm run pixelfed >> $GITHUB_STEP_SUMMARY
- name: Update Unsplash
env:
UNSPLASH_ACCESS_KEY: ${{ secrets.UNSPLASH_ACCESS_KEY }}
run: npm run unsplash >> $GITHUB_STEP_SUMMARY
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.PAT }}
branch: data
delete-branch: true
commit-message: Update data
title: Update data
labels: automerge 🤞