Skip to content

Commit

Permalink
dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
andreykaipov committed Mar 19, 2024
1 parent 956c7b1 commit 9adba9c
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Auto-merge dependabot PRs

on:
workflow_dispatch:
pull_request_target:
types: [opened, reopened, synchronize]

permissions:
pull-requests: write
contents: write

jobs:
automerge:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- uses: actions/checkout@v4

- uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ secrets.CATHY_CLOUD_APP_ID }}
private_key: ${{ secrets.CATHY_CLOUD_APP_PRIVATE_KEY }}

- name: automerge bot PRs
run: |
gh pr merge --squash --auto ${{ github.event.pull_request.number }}
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
# - package-ecosystem: gitsubmodule
# directory: /
# schedule:
# interval: weekly

0 comments on commit 9adba9c

Please sign in to comment.