Skip to content

Commit f9cd748

Browse files
committed
Use tag pr-xyz for triton-benchmarks runs on PRs.
If triton-benchmarks is triggered by PR then it gets tagged by `pr-xyz` where `xyz` is the PR number.
1 parent 4f6f088 commit f9cd748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/triton-benchmarks.yml

Lines changed: 1 addition & 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:

0 commit comments

Comments
 (0)