forked from polkadot-fellows/runtimes
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,28 +51,28 @@ jobs: | |
env: | ||
CMD: ${{ steps.parse-args.outputs.result }} # to avoid "" around the command | ||
run: | | ||
OUTPUT=$(python3 .github/scripts/cmd/cmd.py bench --runtime kusama --pallet pallet_indices) | ||
echo "$OUTPUT" >> $GITHUB_OUTPUT | ||
python3 .github/scripts/cmd/cmd.py bench --runtime kusama --pallet pallet_indices | ||
git status | ||
git diff | ||
- name: Comment PR (End) | ||
uses: actions/github-script@v7 | ||
with: | ||
github-token: ${{ steps.commands_token.outputs.token }} | ||
# github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
const output = `${{ steps.bench.outputs.result }}` | ||
console.log(output) | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: `Benchmark finished! Output: ${output} [Link to pipeline](${context.runId})` | ||
body: `Benchmark finished! Output: [Link to pipeline](${context.runId})` | ||
}) | ||
- name: Commit changes | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git commit -m "Update from benchmark" -a | ||
git add . | ||
git commit -m "Update from benchmark" | ||
git push origin HEAD:refs/heads/${{ github.head_ref }} | ||