Skip to content

Commit

Permalink
Update blank.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Marichandran authored Nov 29, 2022
1 parent 38947b4 commit d907e95
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,20 @@ jobs:
uses: actions/checkout@v2
- name: echo vars
run:
echo The PR_EVENT is ${{ inputs.PR_EVENT }}
echo The PR_URL is ${{ inputs.PR_URL }}
echo The TOKEN is ${{ inputs.PR_LABEL }}
echo "The PR_EVENT is $PR.EVENT"
echo "The PR_URL is $PR_URL"
echo "The TOKEN is $PR_LABEL"

- name: Trigger Jenkins Build with PR Information
run:
echo ${{ inputs.JENKINS_URL }}${{ inputs.BUILDTOKEN }}
echo ${{ inputs.PR_EVENT }}
echo ${{ inputs.PR_URL }}
run: |-
curl --location --request POST $JENKINS_URL$BUILDTOKEN \
--header 'Content-Type: application/json' \
--data-raw '{
"action": $PR_EVENT ,
"pull_request": {
"html_url": $PR_URL
},
"label": {
"name": $PR_LABEL
}
}'

0 comments on commit d907e95

Please sign in to comment.