Bump the patch-and-minor-updates group in /webmoti-react with 7 updates #28
Workflow file for this run
This file contains hidden or 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: Auto-merge Dependabot (non-majors) | |
| # see ruleset for Dependabot in github project settings | |
| # (it requires pr approval and status checks to pass) | |
| # Settings > Rules > Rulesets > Dependabot auto merge | |
| on: pull_request | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| dependabot: | |
| runs-on: ubuntu-latest | |
| if: > | |
| github.event.pull_request.user.login == 'dependabot[bot]' && | |
| github.repository == 'imdc/webmoti-react' | |
| steps: | |
| - name: Fetch Dependabot metadata | |
| id: dependabot-metadata | |
| uses: dependabot/fetch-metadata@v2 | |
| with: | |
| github-token: "${{ secrets.GITHUB_TOKEN }}" | |
| - name: Auto-approve | |
| # only non major versions in /webmoti-react | |
| if: > | |
| (steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch' || | |
| steps.dependabot-metadata.outputs.update-type == 'version-update:semver-minor') && | |
| steps.dependabot-metadata.outputs.directory == '/webmoti-react' | |
| run: gh pr review --approve "$PR_URL" | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Auto-merge | |
| if: > | |
| (steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch' || | |
| steps.dependabot-metadata.outputs.update-type == 'version-update:semver-minor') && | |
| steps.dependabot-metadata.outputs.directory == '/webmoti-react' | |
| run: gh pr merge --auto --merge "$PR_URL" | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |