Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add bots auto approve #7

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

---
name: Dependabot automation
name: Dependencies bots automation

on: # yamllint disable-line rule:truthy
pull_request:
Expand All @@ -26,12 +26,12 @@ permissions:
pull-requests: write

jobs:
dependabot:
bots-automation:
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
if: github.actor == 'dependabot[bot]' || github.actor == 'renovate[bot]' || github.actor == 'renovate-bot'
steps:
- name: Fetch Dependabot metadata
id: metadata
Expand All @@ -41,5 +41,6 @@ jobs:
- name: Approve the PR
run: gh pr review --approve "${PR_URL}"
- name: Enable auto-merge for PRs
if: github.actor == 'dependabot[bot]'
run: gh pr merge --auto --squash --delete-branch "${PR_URL}"
...
2 changes: 1 addition & 1 deletion envelope-encryption-sample/python-cli/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
google-cloud-kms==3.0.0
absl-py==2.1.0
cryptography==43.0.1
cryptography==43.0.3
crcmod==1.7
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cryptography==43.0.1
cryptography==43.0.3
google-cloud-kms==3.0.0