Skip to content

Commit 85e6255

Browse files
authored
chore(ci): fix dependabot workflow (#917)
1 parent 2d94408 commit 85e6255

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/test-and-build-from-fork.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,14 @@ jobs:
4444
SEGMENT_KEY: ${{ secrets.SEGMENT_KEY_DEV }}
4545
run: npm run test
4646

47+
merge-dependabot-pr:
48+
name: Merge Dependabot PR
49+
runs-on: ubuntu-latest
50+
needs:
51+
- test-and-build
52+
if: github.event.pull_request.user.login == 'dependabot[bot]'
53+
steps:
4754
- name: Enable auto-merge for Dependabot PRs
48-
if: github.event.pull_request.user.login == 'dependabot[bot]'
4955
run: gh pr merge --auto --squash "$PR_URL"
5056
env:
5157
PR_URL: ${{github.event.pull_request.html_url}}

0 commit comments

Comments
 (0)