12
12
workflow_dispatch :
13
13
14
14
jobs :
15
- call-trigger-jenkins-workflow :
15
+ call-trigger-jenkins-workflow :
16
+ runs-on : ubuntu-latest
17
+
16
18
permissions :
17
19
contents : read
18
20
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