Skip to content

Commit 5b4bffb

Browse files
authored
Use tag pr-xyz for triton-benchmarks runs on PRs. (#2880)
If triton-benchmarks is triggered by PR then it gets tagged by `pr-xyz` where `xyz` is the PR number. Fixes #2862.
1 parent 4f6f088 commit 5b4bffb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/triton-benchmarks.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ env:
4848
PYTHON_VERSION: "3.10"
4949
BENCHMARKING_METHOD: ${{ inputs.benchmarking_method || 'PYTORCH_LEGACY_PROFILER_USING_IPEX' }}
5050
USE_IPEX: ${{ github.event_name != 'workflow_dispatch' && '1' || inputs.benchmarking_method == 'PYTORCH_LEGACY_PROFILER_USING_IPEX' && '1' || '0' }}
51-
TAG: ${{ inputs.tag || (github.event_name == 'pull_request' && 'pr') || (github.event_name == 'schedule' && 'ci') || 'test' }}
51+
TAG: ${{ inputs.tag || (github.event_name == 'pull_request' && format('pr-{0}', github.event.number)) || (github.event_name == 'schedule' && 'ci') || 'test' }}
5252

5353
jobs:
5454
build:
@@ -60,6 +60,12 @@ jobs:
6060
run:
6161
shell: bash -noprofile --norc -eo pipefail -c "source /opt/intel/oneapi/setvars.sh > /dev/null; source {0}"
6262
steps:
63+
- name: Print inputs
64+
run: |
65+
cat <<EOF
66+
${{ toJSON(inputs) }}
67+
EOF
68+
6369
- name: Checkout repository
6470
uses: actions/checkout@v4
6571

0 commit comments

Comments
 (0)