Update static data #3
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 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@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
- name: Enable corepack | |
shell: bash | |
run: corepack enable | |
- 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@70a41aba780001da0a30141984ae2a0c95d8704e # v6.0.2 | |
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 |