Update Transitive Dependencies #104
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 Transitive Dependencies | |
on: | |
schedule: | |
- cron: "15 15 * * 0" # weekly, on Sunday morning (UTC) | |
workflow_dispatch: null | |
jobs: | |
update: | |
runs-on: macos-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: remove and re-create lock file | |
run: | | |
rm pnpm-lock.yaml | |
pnpm install --fix-lockfile | |
pnpm dedupe | |
- name: Create Pull Request | |
id: cpr | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
token: ${{ secrets.ZORGBORT_TOKEN }} | |
commit-message: Update Transitive Dependencies | |
title: Update Transitive Dependencies | |
body: | | |
- Dependency updates | |
Auto-generated by [create-pull-request][1] | |
[1]: https://github.com/peter-evans/create-pull-request | |
branch: auto-update-dependencies | |
labels: dependencies | |
- name: Approve Pull Request | |
run: gh pr review --approve -b "Auto Approved" ${{ steps.cpr.outputs.pull-request-number }} | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Enable Pull Request Automerge and Label for Tests | |
if: steps.cpr.outputs.pull-request-operation == 'created' | |
run: | | |
gh pr edit --add-label "run ui tests" ${{ steps.cpr.outputs.pull-request-number }} | |
gh pr merge --merge --auto ${{ steps.cpr.outputs.pull-request-number }} | |
env: | |
GH_TOKEN: ${{ secrets.ZORGBORT_TOKEN }} |