Skip to content

feat(tests): Implement tests with Playwright #22

feat(tests): Implement tests with Playwright

feat(tests): Implement tests with Playwright #22

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