generated from nhoizey/pack11ty
-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (45 loc) · 1.35 KB
/
update-data.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
43
44
45
46
47
48
49
50
51
52
53
54
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:
webmentions:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
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 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@v3
with:
token: ${{ secrets.PAT }}
branch: webmentions
delete-branch: true
commit-message: Update Webmentions
title: Update Webmentions
labels: automerge 🤞