Skip to content

feat(loading): Implement Suspense and loading states #8

feat(loading): Implement Suspense and loading states

feat(loading): Implement Suspense and loading states #8

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