⬆️ Update Patch Dependencies #15
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 Patch Dependencies | |
on: | |
schedule: | |
- cron: "00 10 26 * *" | |
jobs: | |
Patch_Dependencies: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node: [18.x] | |
os: [ubuntu-latest] | |
fail-fast: false | |
steps: | |
- name: ⬇️ Checkout code | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: ⚙️ Set node ${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: pnpm | |
- name: 📦 Patch Dependencies | |
run: pnpx taze patch -w | |
- name: Create commits | |
run: | | |
git config --global user.email "githubactions@exemple.com" | |
git config --global user.name "Github Actions" | |
git switch main | |
git checkout -b update-patch-dependencies | |
git pull | |
git add . | |
git commit -m ":arrow_up: Patch dependencies" | |
git push origin update-patch-dependencies | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
commit-message: ⬆️ Patch dependencies | |
title: ⬆️ Patch dependencies | |
body: This PR was created by github actions | |
branch: main | |