Skip to content

Commit

Permalink
Update commands.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mordamax committed Jul 19, 2024
1 parent 8eb8b4f commit 0ced13b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 0ced13b

Please sign in to comment.