forked from renovatebot/renovate
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.25 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
name: 'Update static data'
on:
schedule:
- cron: '0 0 * * 0' # Every Sunday at midnight
workflow_dispatch:
env:
NODE_VERSION: 16
permissions:
contents: write
pull-requests: write
jobs:
update-data:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0
- name: Set up Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3.5.1
with:
node-version: ${{ env.NODE_VERSION }}
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Update static data
run: yarn run update-static-data
- name: Run Prettier
run: yarn prettier-fix
- name: Create pull request
uses: peter-evans/create-pull-request@b4d51739f96fca8047ad065eccef63442d8e99f7 # tag=v4.2.0
with:
author: 'Renovate Bot <[email protected]>'
branch: 'chore/update-static-data'
commit-message: 'fix(data): automatic update of static data'
committer: 'Renovate Bot <[email protected]>'
title: 'fix(data): automatic update of static data'
assignees: rarkins,viceice