Skip to content

chore(deps-dev): bump eslint-plugin-react from 7.33.2 to 7.34.1 #6

chore(deps-dev): bump eslint-plugin-react from 7.33.2 to 7.34.1

chore(deps-dev): bump eslint-plugin-react from 7.33.2 to 7.34.1 #6

---
name: Dependabot Approve and Merge
on:
pull_request_target:
branches:
- main
permissions:
pull-requests: write
contents: write
issues: write
jobs:
automerge:
name: Auto merge
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Fetch config
id: fetch-config
env:
UPDATE_TYPES: ${{ vars.UPDATE_TYPES }}
OMIT_NAMES: ${{ vars.OMIT_NAMES }}
run: |
arr=(${UPDATE_TYPES//;/ })
count=${#arr[@]}
arr2=(${OMIT_NAMES//;/ })
echo "Types: ${arr[*]}"
echo "Omit: ${arr2[*]}"
echo "types=${arr[*]}" >> $GITHUB_OUTPUT
echo "count=${count}" >> $GITHUB_OUTPUT
echo "omit=${arr2[*]}" >> $GITHUB_OUTPUT
- name: Fetch Dependabot metadata
id: dependabot-metadata
if: fromJson(steps.fetch-config.outputs.count) > 0
uses: dependabot/fetch-metadata@v2.0.0
- name: Approve and auto-merge
id: auto-merge
if: |
fromJson(steps.fetch-config.outputs.count) > 0
&& contains(steps.fetch-config.outputs.types, steps.dependabot-metadata.outputs.update-type)
&& !contains(steps.fetch-config.outputs.omit, steps.dependabot-metadata.outputs.dependency-names)
run: |
gh pr review --approve "$PR_URL"
gh pr merge --auto --squash "$PR_URL"
gh pr edit "$PR_URL" --add-label "auto-merged"
echo "STATUS=true" >> $GITHUB_OUTPUT
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Write summary
run: |
result="skip. :x:"
if [ "${STATUS}" == "true" ]; then
result=" auto-merge! :white_check_mark:"
fi
echo "### Done with ${result}" >> $GITHUB_STEP_SUMMARY
env:
STATUS: ${{ steps.auto-merge.outputs.STATUS }}