Skip to content

Commit

Permalink
testing random number generator
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeet-joy_xero committed Sep 23, 2024
1 parent efff19e commit 59cc42c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ jobs:
- name: Calling All SDK workflows
run: |
response=$(curl -X POST \
-H 'Authorization: Bearer ${{ steps.get_access_token.outputs.result }}' \
-H "Accept: application/vnd.github.everest-preview+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/xero-internal/xeroapi-sdk-codegen/actions/workflows/pr.yml/dispatches \
-d '{"ref":"PETOSS-536-enabling-workflow-dispatch","inputs":{"branch_name": "${{github.head_ref}}"}}')
echo "response: $response"
dispatchId=$(1000 + RANDOM % 90000)
echo "dispatchId: $dispatchId"
# curl -X POST \
# -H 'Authorization: Bearer ${{ steps.get_access_token.outputs.result }}' \
# -H "Accept: application/vnd.github.everest-preview+json" \
# -H "X-GitHub-Api-Version: 2022-11-28" \
# https://api.github.com/repos/xero-internal/xeroapi-sdk-codegen/actions/workflows/pr.yml/dispatches \
# -d '{"ref":"PETOSS-536-enabling-workflow-dispatch","inputs":{"branch_name": "${{github.head_ref}}", "dispatch_id": ""}}'
# - name: Get workflow run ID
# id: get-run-id
Expand Down

0 comments on commit 59cc42c

Please sign in to comment.