File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 18
18
required : true
19
19
20
20
permissions :
21
- contents : read
21
+ contents : write
22
22
pull-requests : read
23
23
24
24
defaults :
52
52
53
53
- name : Check out pull request
54
54
id : checkout
55
- if : github.event_name == 'workflow_dispatch'
55
+ if : github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot')
56
56
run : |
57
57
gh pr checkout "${PR}"
58
58
68
68
69
69
- name : Vendor Gems
70
70
run : |
71
- if [[ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]]
71
+ if [[ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" || ("${GITHUB_EVENT_NAME}" == "pull_request" && "${GITHUB_ACTOR}" == "dependabot") ]]
72
72
then
73
73
brew vendor-gems --non-bundler-gems
74
74
else
79
79
run : brew typecheck --update
80
80
81
81
- name : Commit RBI changes
82
- if : github.event_name == 'workflow_dispatch'
82
+ if : github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot')
83
83
env :
84
84
GEM_NAME : ${{ steps.checkout.outputs.gem_name }}
85
85
working-directory : ${{ steps.set-up-homebrew.outputs.repository-path }}
@@ -100,10 +100,10 @@ jobs:
100
100
private-key : ${{ secrets.BREW_COMMIT_APP_KEY }}
101
101
102
102
- name : Push to pull request
103
- if : github.event_name == 'workflow_dispatch'
103
+ if : github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot')
104
104
uses : Homebrew/actions/git-try-push@main
105
105
with :
106
- token : ${{ steps.app-token.outputs.token }}
106
+ token : ${{ steps.app-token.outputs.token || secrets.GITHUB_TOKEN }}
107
107
directory : ${{ steps.set-up-homebrew.outputs.repository-path }}
108
108
branch : ${{ steps.checkout.outputs.branch }}
109
109
force : true
You can’t perform that action at this time.
0 commit comments