chore(deps): Bump the dependencies group across 1 directory with 15 updates #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |