Skip to content

Commit

Permalink
Merge pull request #1166 from gregdhill/chore/commit-manually
Browse files Browse the repository at this point in the history
chore: commit new weights manually
  • Loading branch information
gregdhill authored Aug 7, 2023
2 parents 4c7c13c + b797a30 commit 35d1cac
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:
jobs:
benchmark:
name: Benchmark
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/run_benchmarks') }}
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/benchmark') }}
runs-on: [self-hosted, linux]
steps:
- uses: actions/github-script@v6
Expand All @@ -37,7 +37,7 @@ jobs:
id: command
with:
result-encoding: string
# /run_benchmarks CHAIN_NAME [PALLET_NAME]
# /benchmark CHAIN_NAME [PALLET_NAME]
script: |
const [cmd, ...args] = context.payload.comment.body.split(" ")
const [runtime, pallet] = args
Expand Down Expand Up @@ -71,10 +71,12 @@ jobs:
- name: Run benchmarks
run: ${{steps.command.outputs.result}} > ${{runner.temp}}/out.txt
- name: Commit new weights
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automated weights

run: |
git config user.email "[email protected]"
git config user.name "Interlay Bot"
git add .
git commit -m '${{github.event.comment.body}}' --allow-empty
git push origin HEAD:${{ fromJson(steps.issue.outputs.result).ref }}
- uses: actions/github-script@v6
name: Update comment
with:
Expand Down

0 comments on commit 35d1cac

Please sign in to comment.