From 5b4bffb8a067eab256f60e1a9e447746d78fee88 Mon Sep 17 00:00:00 2001 From: Pavel Chekin Date: Fri, 29 Nov 2024 14:03:30 -0800 Subject: [PATCH] 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. --- .github/workflows/triton-benchmarks.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/triton-benchmarks.yml b/.github/workflows/triton-benchmarks.yml index a008138392..9883b28437 100644 --- a/.github/workflows/triton-benchmarks.yml +++ b/.github/workflows/triton-benchmarks.yml @@ -48,7 +48,7 @@ env: PYTHON_VERSION: "3.10" BENCHMARKING_METHOD: ${{ inputs.benchmarking_method || 'PYTORCH_LEGACY_PROFILER_USING_IPEX' }} USE_IPEX: ${{ github.event_name != 'workflow_dispatch' && '1' || inputs.benchmarking_method == 'PYTORCH_LEGACY_PROFILER_USING_IPEX' && '1' || '0' }} - TAG: ${{ inputs.tag || (github.event_name == 'pull_request' && 'pr') || (github.event_name == 'schedule' && 'ci') || 'test' }} + TAG: ${{ inputs.tag || (github.event_name == 'pull_request' && format('pr-{0}', github.event.number)) || (github.event_name == 'schedule' && 'ci') || 'test' }} jobs: build: @@ -60,6 +60,12 @@ jobs: run: shell: bash -noprofile --norc -eo pipefail -c "source /opt/intel/oneapi/setvars.sh > /dev/null; source {0}" steps: + - name: Print inputs + run: | + cat <