Skip to content

Commit e3e9567

Browse files
committed
ci: add pull_request_target trigger for Dependabot CI compatibility
1 parent 1fca7fb commit e3e9567

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
branches: [develop]
55
pull_request:
66
branches: [develop, main]
7+
pull_request_target:
8+
branches: [develop, main]
79
workflow_dispatch:
810
inputs:
911
triggered-by:
@@ -12,7 +14,8 @@ on:
1214
type: string
1315
jobs:
1416
build:
17+
if: github.event_name \!= 'pull_request_target' || github.actor == 'dependabot[bot]'
1518
uses: fireflyframework/.github/.github/workflows/java-ci.yml@main
1619
with:
1720
java-version: '25'
18-
21+
checkout-ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || '' }}

0 commit comments

Comments
 (0)