diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index d1cd09814..5252e1ef2 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -6,7 +6,7 @@ on: pr_id: description: 'Pull Request number' required: true - default: '' + default: 0 workflow_run: workflows: ["BuildAndReleaseMaster"] types: @@ -79,11 +79,10 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: script: | - const core = require('@actions/core'); - const github = require('@actions/github'); - const pr_id = parseInt(core.getInput('pr_id')); + const pr_id = parseInt(${{ github.event.inputs.pr_id }}); + echo "pr_id is ${{ github.event.inputs.pr_id }}" await (async () => { - const { data: pr } = await github.pulls.get({ + const { data: pr } = await github.rest.pulls.get({ owner: 'esrlabs', repo: 'chipmunk', pull_number: pr_id,