diff --git a/.github/workflows/benchmark.main.kts b/.github/workflows/benchmark.main.kts index 4d7adfd3c..01ba503e0 100755 --- a/.github/workflows/benchmark.main.kts +++ b/.github/workflows/benchmark.main.kts @@ -150,11 +150,9 @@ workflow( failThreshold = "200%", ghRepository = "github.com/krzema12/snakeyaml-engine-kmp-benchmarks", outputFilePath = AGGREGATED_REPORT, - _customInputs = mapOf( - "github-token" to expr { PUBLISH_BENCHMARK_RESULTS }, - // Push and deploy GitHub pages branch automatically only if run in main repo and not in PR - "auto-push" to expr { "${github.repository} == 'krzema12/snakeyaml-engine-kmp' && ${github.event_name} != 'pull_request'" }, - ) + githubToken = expr { PUBLISH_BENCHMARK_RESULTS }, + // Push and deploy GitHub pages branch automatically only if run in main repo and not in PR + autoPush_Untyped = expr { "${github.repository} == 'krzema12/snakeyaml-engine-kmp' && ${github.event_name} != 'pull_request'" }, ), ) } diff --git a/.github/workflows/benchmark.yaml b/.github/workflows/benchmark.yaml index 010a50575..874e8c2cd 100644 --- a/.github/workflows/benchmark.yaml +++ b/.github/workflows/benchmark.yaml @@ -95,9 +95,9 @@ jobs: tool: 'jmh' output-file-path: 'aggregated.json' gh-repository: 'github.com/krzema12/snakeyaml-engine-kmp-benchmarks' + github-token: '${{ secrets.PUBLISH_BENCHMARK_RESULTS }}' + auto-push: '${{ github.repository == ''krzema12/snakeyaml-engine-kmp'' && github.event_name != ''pull_request'' }}' summary-always: 'true' comment-on-alert: 'true' alert-threshold: '150%' fail-threshold: '200%' - github-token: '${{ secrets.PUBLISH_BENCHMARK_RESULTS }}' - auto-push: '${{ github.repository == ''krzema12/snakeyaml-engine-kmp'' && github.event_name != ''pull_request'' }}'