File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -405,8 +405,17 @@ jobs:
405405 - name : Get build eProsima dependencies Job Id
406406 shell : pwsh
407407 run : |
408- $RUNS_URI = '${{ github.api_url }}/repos/${{ github.repository }}/actions/workflows/build_dependencies.yml/runs';
409- ((iwr $RUNS_URI).Content | ConvertFrom-Json).workflow_runs | ? status -eq 'completed' |
408+ $secret = ConvertTo-SecureString -String "${{ secrets.GITHUB_TOKEN }}" -AsPlainText
409+ $RUNS_URI = '${{ github.api_url }}/repos/${{ github.repository }}/actions/workflows/build_dependencies.yml/runs'
410+
411+ # Check available queries according with github policy
412+ "::group::Rate Limits with github action token"
413+ ((Invoke-WebRequest -Authentication OAuth -Token $secret `
414+ -Uri https://api.github.com/users/octocat).Headers.GetEnumerator() |
415+ ? Key -like "X-RateLimit*") | Out-Host
416+ "::endgroup::"
417+
418+ ((Invoke-WebRequest -Authentication OAuth -Token $secret -Uri $RUNS_URI).Content | ConvertFrom-Json).workflow_runs | ? status -eq 'completed' |
410419 select -first 1 id | % { "fastdds_job_id=" + $_.id } | Out-File $env:GITHUB_ENV -Append
411420
412421 - name : Download eProsima dependencies
You can’t perform that action at this time.
0 commit comments