Skip to content

Fetch and Rebuild

Fetch and Rebuild #98

name: Fetch and Rebuild
on:
schedule:
- cron: '59 23 * * 0' # Every Sunday at 23:59
workflow_dispatch:
jobs:
fetch-and-rebuild:
name: Fetch and rebuild
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install Yarn dependencies
run: yarn --immutable
- name: Fetch, rebuild, create pull request
run: yarn rebuild:ci ${{ steps.date.outputs.date }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}