Skip to content

Commit

Permalink
Pass token as input to template
Browse files Browse the repository at this point in the history
  • Loading branch information
vibhansa-msft committed Jun 25, 2024
1 parent 27c9d22 commit a612929
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/template/generate_page/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ inputs:
description: "Test to run"
TYPE:
required: true
description: "Type of storage account"
description: "Type of storage account"
TOKEN:
required: true
description: "Token for checkin"

runs:
using: "composite"

steps:
# Pre-run cleanup
- name: "Cleanup before test"
Expand All @@ -33,7 +37,7 @@ runs:
tool: 'customBiggerIsBetter'
alert-threshold: "160%"
max-items-in-chart: 100
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ inputs.TOKEN }}
fail-on-alert: true
auto-push: true
comment-on-alert: true
Expand All @@ -48,7 +52,7 @@ runs:
tool: 'customSmallerIsBetter'
alert-threshold: "160%"
max-items-in-chart: 100
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ inputs.TOKEN }}
fail-on-alert: true
auto-push: true
comment-on-alert: true
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,27 +103,31 @@ jobs:
with:
TEST: "read"
TYPE: ${{ matrix.TestType }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Run the Write tests with high number of threads
- name: "High threads Test"
uses: "./.github/template/generate_page"
with:
TEST: "highlyparallel"
TYPE: ${{ matrix.TestType }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Run the Write tests
- name: "Write Test"
uses: "./.github/template/generate_page"
with:
TEST: "write"
TYPE: ${{ matrix.TestType }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Run the Create tests
- name: "Create File Test"
uses: "./.github/template/generate_page"
with:
TEST: "create"
TYPE: ${{ matrix.TestType }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
# ---------------------------------------------------------------------------------------


Expand Down

0 comments on commit a612929

Please sign in to comment.