File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 17
17
echo "target=patch" >> $GITHUB_OUTPUT
18
18
fi
19
19
20
- - uses : ahmadnassri/action-dependabot-auto-merge@v2
20
+ - name : Dependabot metadata
21
+ id : metadata
22
+ uses : dependabot/fetch-metadata@4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d
21
23
with :
22
- github-token : ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
23
- target : ${{ steps.set-target.outputs.target }}
24
+ github-token : " ${{ secrets.GH_ACTIONS_REPO_TOKEN }}"
25
+ - name : Enable auto-merge for Dependabot PRs
26
+ if : steps.metadata.outputs.update-type == format('version-update:semver-{0}', steps.set-target.outputs.target)
27
+ run : gh pr merge --auto --merge "$PR_URL"
28
+ env :
29
+ PR_URL : ${{github.event.pull_request.html_url}}
30
+ GH_TOKEN : ${{secrets.GH_ACTIONS_REPO_TOKEN}}
You can’t perform that action at this time.
0 commit comments