Skip to content

Commit

Permalink
clarify job name and more readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mordamax committed Jul 24, 2024
1 parent f1ebb6d commit 01d23c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/cmd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ jobs:
cmd:
needs: clean
env:
JOB_NAME: 'cmd'
if: ${{ startsWith(github.event.comment.body, '/cmd') && !contains(github.event.comment.body, '--help') }}
runs-on: ${{ startsWith(github.event.comment.body, '/cmd bench') && 'arc-runners-beefy-stg' || 'ubuntu-22.04' }}
steps:
Expand Down Expand Up @@ -163,7 +165,7 @@ jobs:
jobLink=$(curl -s \
-H "Authorization: token ${{ steps.commands_token.outputs.token }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs | jq '.jobs[1].html_url')
https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs | jq '.jobs[] | select(.name | contains(${{ env.JOB_NAME }})) | .html_url')
runLink=$(curl -s \
-H "Authorization: token ${{ steps.commands_token.outputs.token }}" \
Expand Down
4 changes: 3 additions & 1 deletion docs/weight-generation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Weight Generation

To generate weights for a runtime
To generate weights for a runtime.
Weights generation is using self-hosted runner which is provided by [Amforc](https://amforc.com/), the rest commands are using standard Github runners on `ubuntu-latest` or `ubuntu-20.04`.
This runner is configured to meet requirements of reference hardware for running validators https://wiki.polkadot.network/docs/maintain-guides-how-to-validate-polkadot#reference-hardware

In a PR run the actions through comment:

Expand Down

0 comments on commit 01d23c9

Please sign in to comment.