renovatebot_renovate/.github/workflows/update-data.yml

53 lines
1.5 KiB
YAML

name: 'Update static data'
on:
schedule:
- cron: '0 0 * * 0' # Every Sunday at midnight
workflow_dispatch:
env:
NODE_VERSION: 18
permissions:
contents: read
jobs:
update-data:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
with:
show-progress: false
- name: Setup pnpm
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
with:
standalone: true
- name: Set up Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ env.NODE_VERSION }}
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Update static data
run: pnpm run update-static-data
- name: Run Prettier
run: pnpm prettier-fix
- name: Create pull request
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e # v6.0.5
with:
author: 'Renovate Bot <renovate@whitesourcesoftware.com>'
branch: 'chore/update-static-data'
commit-message: 'fix(data): automatic update of static data'
committer: 'Renovate Bot <renovate@whitesourcesoftware.com>'
title: 'fix(data): automatic update of static data'
assignees: rarkins,viceice