Skip to content

Commit

Permalink
Update benchmarks.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Sameer Srivastava <[email protected]>
  • Loading branch information
itsmesamster authored Aug 7, 2024
1 parent a5ff54d commit a1ceb9f
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,23 +71,23 @@ jobs:
# ruby --version
# pwd
# gem install dotenv json octokit tmpdir fileutils
- name: Get PR details 1
if: github.event_name == 'workflow_dispatch'
id: pr_details
uses: actions/github-script@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
script: |
const pr_id = parseInt(${{ github.event.inputs.pr_id }});
echo "pr_id is ${{ github.event.inputs.pr_id }}"
const { data: pr } = await github.rest.pulls.get({
owner: 'esrlabs',
repo: 'chipmunk',
pull_number: pr_id
});
core.setOutput('owner', pr.head.repo.owner.login);
core.setOutput('repo', pr.head.repo.name);
# - name: Get PR details 1
# if: github.event_name == 'workflow_dispatch'
# id: pr_details
# uses: actions/github-script@v6
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# script: |
# const pr_id = parseInt(${{ github.event.inputs.pr_id }});
# echo "pr_id is ${{ github.event.inputs.pr_id }}"
# const { data: pr } = await github.rest.pulls.get({
# owner: 'esrlabs',
# repo: 'chipmunk',
# pull_number: pr_id
# });
# core.setOutput('owner', pr.head.repo.owner.login);
# core.setOutput('repo', pr.head.repo.name);
- name: Get PR details
if: github.event_name == 'workflow_dispatch'
id: pr_details_1
Expand Down

0 comments on commit a1ceb9f

Please sign in to comment.