Skip to content

Commit

Permalink
Fixed passing token to action
Browse files Browse the repository at this point in the history
Signed-off-by: Gregory Shimansky <gshimansky@gmail.com>
  • Loading branch information
gshimansky committed Mar 22, 2024
1 parent 89a60f3 commit 71eb3b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/actions/install-wheels/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@ inputs:
# Example of specifying only some packages to install: {intel_extension_for_pytorch-*,torch-*}
description: Pattern to match the wheel files to download
default: '*'
gh_token:
description: GitHub token
required: true

runs:
using: "composite"
steps:
- name: Install wheels from specified workflow artifacts
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ input.gh_token }}
run: |
WORKFLOW_ID=$(gh run list -w "${{ input.workflow }}" -R ${{ input.repository }} --json databaseId | jq '.[0].databaseId')
PYTHON_VERSION=$(python -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/e2e-performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ jobs:

- name: Install latest nightly wheels
uses: ./.github/actions/install-wheels
with:
gh_token: ${{ secrets.GITHUB_TOKEN }}

- name: Identify pinned versions
run: |
Expand Down

0 comments on commit 71eb3b4

Please sign in to comment.