Skip to content

Commit ba7cd5d

Browse files
committed
compat: with FluxML org secrets
1 parent 64d313b commit ba7cd5d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/BenchmarkTrigger.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,18 @@ jobs:
2525
TARGET_URL: ${{ github.event.inputs.target_url || format("{0}#{1}", github.event.pull_request.head.html_url, github.event.pull_request.head.sha) }}
2626
BASELINE_URL: ${{ github.event.inputs.baseline_url || format("{0}#{1}"", github.event.pull_request.base.repo.html_url, github.event.pull_request.base.sha) }}
2727
steps:
28-
- uses: benc-uk/workflow-dispatch@v1
28+
-
29+
name: Get app installation token (ghs)
30+
id: get-app-token
31+
uses: tibdex/github-app-token@v1
32+
with:
33+
app_id: ${{ secrets.BENCH_APP_ID }}
34+
installation_id: ${{ secrets.BENCH_INSTALL_ID }}
35+
private_key: ${{ secrets.BENCH_PRIVATE_KEY }}
36+
-
37+
uses: benc-uk/workflow-dispatch@v1
2938
with:
3039
repo: FluxML/FluxMLBenchmarks.jl
3140
workflow: Benchmark.yml
32-
token: ${{ secrets.PAT }}
41+
token: ${{ steps.get-app-token.outputs.token }}
3342
inputs: '{ "repo": $REPOSITORY, "pr_id": $PR_ID, "target_url": $TARGET_URL, "baseline_url": $BASELINE_URL }'

0 commit comments

Comments
 (0)