mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-01 17:41:37 +00:00
6775c4f17b
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
40 lines
1.6 KiB
YAML
40 lines
1.6 KiB
YAML
on:
|
|
repository_dispatch:
|
|
types: update_dep
|
|
|
|
name: Update dependency
|
|
|
|
permissions: {}
|
|
jobs:
|
|
update-dependency:
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
ref: dev
|
|
token: ${{ secrets.GH_TOKEN }}
|
|
- uses: pnpm/action-setup@v4
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
node-version: 24
|
|
cache: pnpm
|
|
- run: |
|
|
pnpm install ${{ github.event.client_payload.package }}@${{ github.event.client_payload.version }} --save-exact
|
|
pnpm install --no-frozen-lockfile
|
|
- uses: peter-evans/create-pull-request@v7
|
|
id: cpr
|
|
with:
|
|
commit-message: 'fix(ignore): update ${{ github.event.client_payload.package }} to ${{ github.event.client_payload.version }}'
|
|
branch: 'deps/${{ github.event.client_payload.package }}'
|
|
title: 'fix(ignore): update ${{ github.event.client_payload.package }} to ${{ github.event.client_payload.version }}'
|
|
token: ${{ secrets.GH_TOKEN }}
|
|
- run: sleep 5 # Otherwise pull request may not exist yet causing automerge to fail
|
|
- run: gh pr merge --squash --auto "${{ steps.cpr.outputs.pull-request-number }}"
|
|
if: steps.cpr.outputs.pull-request-operation == 'created'
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|