Skip to content

Commit e23bfea

Browse files
Add github action workflow
1 parent d26473a commit e23bfea

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Call Trigger Jenkins multibranch workflow
2+
3+
on:
4+
push:
5+
branches:
6+
- 'release/**'
7+
- 'featureimage/**'
8+
pull_request:
9+
branches:
10+
- 'release/**'
11+
- 'featureimage/**'
12+
workflow_dispatch:
13+
14+
jobs:
15+
call-trigger-jenkins-workflow:
16+
permissions:
17+
contents: read
18+
pull-requests: read
19+
uses: etn-electrical/bldc-ipm2-ci/.github/workflows/reusable-jenkins-trigger.yml@featureimage/ghe-polling
20+
with:
21+
project-name: ${{ github.event.repository.name }}
22+
branch-name: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref_name }}
23+
project-organization: ${{ github.repository_owner }}
24+
user-name: ${{ github.event.pusher.name || github.event.pull_request.user.login }}
25+
commitID: ${{ github.sha }}
26+
jobStartTime: $(date +%s)
27+
prID : ${{ github.event_name == 'pull_request' && 'github.event.pull_request.number' || '' }}
28+
prBase : ${{ github.event_name == 'pull_request' && 'github.event.pull_request.base.ref' || '' }}

0 commit comments

Comments
 (0)