Skip to content

Commit e7bd5e6

Browse files
chore: sync default files (#2)
1 parent f51b829 commit e7bd5e6

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/automation.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright 2022 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Automation
16+
on: [pull_request]
17+
jobs:
18+
dependabot:
19+
runs-on: ubuntu-latest
20+
if: ${{ github.actor == 'dependabot[bot]' }}
21+
env:
22+
PR_URL: ${{github.event.pull_request.html_url}}
23+
GITHUB_TOKEN: ${{secrets.GOOGLEWORKSPACE_BOT_TOKEN}}
24+
steps:
25+
- name: approve
26+
run: gh pr review --approve "$PR_URL"
27+
- name: merge
28+
run: gh pr merge --auto --squash --delete-branch "$PR_URL

0 commit comments

Comments
 (0)