Fetch and Rebuild #117
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: Fetch and Rebuild | |
on: | |
schedule: | |
- cron: '59 23 1 * *' # Runs at 23:59, on day 1 of the month. | |
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 }} |