Skip to content

Commit

Permalink
fix(github): use env for github-trigger inputs
Browse files Browse the repository at this point in the history
Signed-off-by: Prashant Shahi <[email protected]>
  • Loading branch information
prashant-shahi committed Jan 9, 2025
1 parent 499b1b9 commit 4d3b2bd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/github-trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,15 @@ jobs:
run: |
$MAKE info
- name: trigger
env:
GH_REPOSITORY: ${{ inputs.GITHUB_REPOSITORY_NAME }}
GH_EVENT_NAME: ${{ inputs.GITHUB_EVENT_NAME }}
GH_EVENT_PAYLOAD: ${{ inputs.GITHUB_EVENT_PAYLOAD }}
run: |
GH_EVENT_PAYLOAD=$(echo "${GH_EVENT_PAYLOAD}" | jq -c . | jq -rR .)
echo "compacted GH_EVENT_PAYLOAD: ${GH_EVENT_PAYLOAD}"
$MAKE github-event-trigger-workflow \
GITHUB_ARGS="-t ${{ steps.token.outputs.token }} \
-r ${{ inputs.GITHUB_REPOSITORY_NAME }} \
-e ${{ inputs.GITHUB_EVENT_NAME }} \
-p ${{ inputs.GITHUB_EVENT_PAYLOAD }}"
-r ${GH_REPOSITORY} \
-e ${GH_EVENT_NAME} \
-p '${GH_EVENT_PAYLOAD}'"

0 comments on commit 4d3b2bd

Please sign in to comment.