⬆ Update outdated dependencies list #295
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: Dependabot auto-merge | |
| on: pull_request_target | |
| permissions: | |
| pull-requests: write | |
| contents: write | |
| jobs: | |
| dependabot: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }} | |
| steps: | |
| - name: Dependabot metadata | |
| id: dependabot-metadata | |
| uses: dependabot/[email protected] | |
| - name: Approve and label updates | |
| run: | | |
| review_status="$( | |
| gh pr view "${PR_URL}" \ | |
| --json="reviewDecision" \ | |
| --jq=".reviewDecision" | |
| )" | |
| echo "Pull request review status: ${review_status}" | |
| if [[ "${review_status}" != "APPROVED" ]]; then | |
| gh pr review --approve "${PR_URL}" | |
| fi | |
| gh pr edit --add-label "cleanup-no-release-required" "${PR_URL}" | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Merge Dependabot patch updates | |
| if: ${{ steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch' }} | |
| run: | | |
| gh pr merge --auto --merge "${PR_URL}" | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Merge Dependabot minor updates | |
| if: ${{ steps.dependabot-metadata.outputs.update-type == 'version-update:semver-minor' }} | |
| run: | | |
| gh pr merge --auto --merge "${PR_URL}" | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Merge Dependabot indirect dependency updates | |
| if: ${{ steps.dependabot-metadata.outputs.dependency-type == 'indirect' }} | |
| run: | | |
| gh pr merge --auto --merge "${PR_URL}" | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |