Skip to content

Commit 1325585

Browse files
Update call-reusable-jenkins-trigger.yml
1 parent e23bfea commit 1325585

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

.github/workflows/call-reusable-jenkins-trigger.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,26 @@ on:
1212
workflow_dispatch:
1313

1414
jobs:
15-
call-trigger-jenkins-workflow:
15+
call-trigger-jenkins-workflow:
16+
runs-on: ubuntu-latest
17+
1618
permissions:
1719
contents: read
1820
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' || '' }}
21+
22+
steps:
23+
- name: Authentificate with Github entreprise server
24+
run: |
25+
echo "${{ secrets.GHE_TRIGGER_ACTIONS_PAT }}" | gh auth login --with-token --hostname https://github.com
26+
27+
- name: Call reusable workflow from GHE
28+
uses: etn-electrical/bldc-ipm2-ci/.github/workflows/reusable-jenkins-trigger.yml@featureimage/ghe-polling
29+
with:
30+
project-name: ${{ github.event.repository.name }}
31+
branch-name: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref_name }}
32+
project-organization: ${{ github.repository_owner }}
33+
user-name: ${{ github.event.pusher.name || github.event.pull_request.user.login }}
34+
commitID: ${{ github.sha }}
35+
jobStartTime: $(date +%s)
36+
prID : ${{ github.event_name == 'pull_request' && 'github.event.pull_request.number' || '' }}
37+
prBase : ${{ github.event_name == 'pull_request' && 'github.event.pull_request.base.ref' || '' }}

0 commit comments

Comments
 (0)