Skip to content

Commit

Permalink
chore(ci): fix dependabot workflow (#917)
Browse files Browse the repository at this point in the history
nirinchev authored Jan 24, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 2d94408 commit 85e6255
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/test-and-build-from-fork.yaml
Original file line number Diff line number Diff line change
@@ -44,8 +44,14 @@ jobs:
SEGMENT_KEY: ${{ secrets.SEGMENT_KEY_DEV }}
run: npm run test

merge-dependabot-pr:
name: Merge Dependabot PR
runs-on: ubuntu-latest
needs:
- test-and-build
if: github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- name: Enable auto-merge for Dependabot PRs
if: github.event.pull_request.user.login == 'dependabot[bot]'
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}

0 comments on commit 85e6255

Please sign in to comment.