Skip to content

chore(deps): Bump react-hook-form from 7.52.1 to 7.52.2 in the dependencies group #10

chore(deps): Bump react-hook-form from 7.52.1 to 7.52.2 in the dependencies group

chore(deps): Bump react-hook-form from 7.52.1 to 7.52.2 in the dependencies group #10

name: Label Image Updates
on:
pull_request:
types: [ opened, synchronize ]
jobs:
label-image-updates:
runs-on: ubuntu-latest
if: startsWith(github.head_ref, 'dependabot/')
steps:
- uses: actions/checkout@v3
- name: Check for image updates and add label
run: |
if git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} | grep -q '^package.*\.json' && git diff ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} | grep -q '"image-'; then
echo "Image-related dependency update detected"
gh pr edit ${{ github.event.pull_request.number }} --add-label "images"
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}