mirror of
https://github.com/gofiber/storage.git
synced 2025-12-19 00:38:24 +08:00
Bumps [lewagon/wait-on-check-action](https://github.com/lewagon/wait-on-check-action) from 1.4.0 to 1.4.1. - [Release notes](https://github.com/lewagon/wait-on-check-action/releases) - [Changelog](https://github.com/lewagon/wait-on-check-action/blob/master/CHANGELOG.md) - [Commits](https://github.com/lewagon/wait-on-check-action/compare/v1.4.0...v1.4.1) --- updated-dependencies: - dependency-name: lewagon/wait-on-check-action dependency-version: 1.4.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
name: Dependabot auto-merge
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request_target:
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
jobs:
|
|
wait_for_checks:
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.actor == 'dependabot[bot]' }}
|
|
steps:
|
|
- name: Wait for check is finished
|
|
uses: lewagon/wait-on-check-action@v1.4.1
|
|
id: wait_for_checks
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
|
running-workflow-name: wait_for_checks
|
|
check-regexp: Tests
|
|
repo-token: ${{ secrets.PR_TOKEN }}
|
|
wait-interval: 10
|
|
dependabot:
|
|
needs: [wait_for_checks]
|
|
name: Dependabot auto-merge
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.actor == 'dependabot[bot]' }}
|
|
steps:
|
|
- name: Dependabot metadata
|
|
id: metadata
|
|
uses: dependabot/fetch-metadata@v2.4.0
|
|
with:
|
|
github-token: "${{ secrets.PR_TOKEN }}"
|
|
- name: Enable auto-merge for Dependabot PRs
|
|
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
|
|
run: |
|
|
gh pr review --approve "$PR_URL"
|
|
gh pr merge --auto --merge "$PR_URL"
|
|
env:
|
|
PR_URL: ${{github.event.pull_request.html_url}}
|
|
GITHUB_TOKEN: ${{secrets.PR_TOKEN}}
|