Skip to content

chore(deps): Bump the dependencies group across 1 directory with 13 updates #41

chore(deps): Bump the dependencies group across 1 directory with 13 updates

chore(deps): Bump the dependencies group across 1 directory with 13 updates #41

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@v4
- 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 }}