File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 41
41
github.actor == 'dependabot[bot]' &&
42
42
github.event_name == 'pull_request'
43
43
run : |
44
- if [[ -z "${GITHUB_TOKEN}" ]]; then
45
- gh pr merge --auto --rebase "$PR_URL"
46
- else
47
- echo 'if you want github to automatically merge pull requests from dependdabot, you need to create a'
48
- echo 'personal access token (public_repo) and assign it to setings -> secrets -> dependabot -> GH_ACTION_TOKEN'
49
- fi
44
+ ./merge_dependabot.sh
50
45
env :
51
46
PR_URL : ${{github.event.pull_request.html_url}}
52
47
# this secret needs to be in the settings.secrets.dependabot
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ gh pr merge --auto --rebase " $PR_URL "
4
+
5
+ if [ $? -ne 0 ]
6
+ then
7
+ echo ' if you want github to automatically merge pull requests from dependabot, you need to create a'
8
+ echo ' personal access token (public_repo) and assign it to settings -> secrets -> dependabot -> GH_ACTION_TOKEN'
9
+ fi
10
+
You can’t perform that action at this time.
0 commit comments