Add github action workflow #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
Check failure on line 19 in .github/workflows/call-reusable-jenkins-trigger.yml GitHub Actions / .github/workflows/call-reusable-jenkins-trigger.ymlInvalid workflow file
|
||
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' || '' }} |