Weekly #38
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: 'Weekly' | |
on: | |
schedule: | |
# Each week at 00:00:00 on Sunday. | |
- cron: '* 0 * * 0' | |
jobs: | |
lockfile: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check Out | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8.7.0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- name: Clear Lockfile | |
run: rm -rf **/node_modules pnpm-lock.yaml | |
- name: Install Dependencies | |
run: pnpm i | |
- name: Create Pull Request | |
id: createpr | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: 'ci: update lockfile' | |
title: 'weekly lockfile update' | |
body: > | |
This PR is auto-generated by a GitHub action. | |
It should automatically be merged if tests pass. | |
- name: Mark Pull Request for Auto-Merge | |
if: steps.createpr.outputs.pull-request-operation == 'created' | |
uses: peter-evans/enable-pull-request-automerge@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
pull-request-number: ${{ steps.createpr.outputs.pull-request-number }} | |
merge-method: squash |