From 71c4380ab68892be8945b9bd4c1ffde966ac996c Mon Sep 17 00:00:00 2001 From: hindilla-eaton Date: Thu, 5 Dec 2024 10:03:47 +0100 Subject: [PATCH] Add github action workflow --- .../call-reusable-jenkins-trigger.yml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/call-reusable-jenkins-trigger.yml diff --git a/.github/workflows/call-reusable-jenkins-trigger.yml b/.github/workflows/call-reusable-jenkins-trigger.yml new file mode 100644 index 00000000..8d6b1859 --- /dev/null +++ b/.github/workflows/call-reusable-jenkins-trigger.yml @@ -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' || '' }} \ No newline at end of file