Skip to content

Commit

Permalink
Add github action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hindilla-eaton committed Dec 5, 2024
1 parent 0d209b9 commit 79a9bfb
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/call-reusable-jenkins-trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Call Trigger Jenkins multibranch workflow

on:
push:
branches:
- 'release/**'
- 'featureimage/**'
pull_request:
branches:
- 'release/**'
- 'featureimage/**'
workflow_dispatch:

jobs:
call-trigger-jenkins-workflow:
permissions:
contents: read
pull-requests: read
uses: etn-electrical/bldc-ipm2-ci/.github/workflows/reusable-jenkins-trigger.yml@featureimage/ghe-polling
with:
project-name: ${{ github.event.repository.name }}
branch-name: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref_name }}
project-organization: ${{ github.repository_owner }}
user-name: ${{ github.event.pusher.name || github.event.pull_request.user.login }}
commitID: ${{ github.sha }}
jobStartTime: $(date +%s)
prID : ${{ github.event_name == 'pull_request' && 'github.event.pull_request.number' || '' }}
prBase : ${{ github.event_name == 'pull_request' && 'github.event.pull_request.base.ref' || '' }}

0 comments on commit 79a9bfb

Please sign in to comment.