File tree Expand file tree Collapse file tree 3 files changed +26
-4
lines changed Expand file tree Collapse file tree 3 files changed +26
-4
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ on: # Build any PRs and main branch changes
1010 # In case of updates to those workflows, they must be pre-checked by `pre-check-CI-updates.yml` rather than this workflow !
1111 # Any updates on those workflows are expected to be restricted to those workflows only ! (no update on code for instance)
1212 - ' .github/workflows/pre-check-CI-updates.yml'
13- - ' .github/workflows/CI.yml'
14- - ' .github/workflows/coverage-upload.yml'
1513 - ' .github/workflows/reusable-CI-workflow.yml'
1614 - ' .github/workflows/reusable-coverage-upload-workflow.yml'
1715 push :
Original file line number Diff line number Diff line change 1+ name : PR auto-merge
2+ on : pull_request
3+
4+ permissions :
5+ contents : write
6+ pull-requests : write
7+
8+ jobs :
9+ dependabot :
10+ if : github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'yoanm/php-jsonrpc-params-symfony-constraint-doc-sdk'
11+ runs-on : ubuntu-latest
12+ permissions :
13+ contents : write
14+ pull-requests : write
15+ steps :
16+ - name : Dependabot metadata
17+ id : metadata
18+ uses : dependabot/fetch-metadata@v2.4.0
19+ with :
20+ github-token : " ${{ secrets.GITHUB_TOKEN }}"
21+ - name : Enable auto-merge for Dependabot PRs
22+ if : ${{ steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
23+ run : gh pr merge --auto --squash "$PR_URL"
24+ env :
25+ PR_URL : ${{github.event.pull_request.html_url}}
26+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1212 branches : [master] # Only for PR targeting master branch
1313 paths : # /!\ Duplicate the same list as `on.pull_request.paths-ignore` property value for CI workflow !
1414 - ' .github/workflows/pre-check-CI-updates.yml' # This workflow
15- - ' .github/workflows/CI.yml'
16- - ' .github/workflows/coverage-upload.yml'
1715 - ' .github/workflows/reusable-CI-workflow.yml'
1816 - ' .github/workflows/reusable-coverage-upload-workflow.yml'
1917
You can’t perform that action at this time.
0 commit comments