Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
fix comments, remove artifact. I hate CI
Browse files Browse the repository at this point in the history
  • Loading branch information
s3krit committed Apr 4, 2023
1 parent b267e82 commit ff1d4f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/check-weights.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,12 @@ jobs:
shell: bash
run: |
cargo install --git https://github.com/ggwpez/substrate-weight-compare swc
scripts/ci/github/check_weights_swc.sh | tee ./swc_output_${{ matrix.runtime }}.txt
pwd
ls
- name: Upload weight changes
id: upload_weight_changes
uses: actions/upload-artifact@v2
with:
name: swc_output_${{ matrix.runtime }}
path: ./swc_output_${{ matrix.runtime }}.txt
if-no-files-found: error
echo "${{ matrix.runtime }} changes:" > ./swc_output_${{ matrix.runtime }}.txt
echo '```' >> ./swc_output_${{ matrix.runtime }}.txt
scripts/ci/github/check_weights_swc.sh | tee -a ./swc_output_${{ matrix.runtime }}.txt
echo '```' >> ./swc_output_${{ matrix.runtime }}.txt
- name: Add comment
uses: thollander/actions-comment-pull-request@v2
with:
message: |
Weight changes for runtime ${{ matrix.runtime }}:
```
${{ steps.upload_weight_changes.outputs.weight_changes }}
```
filePath: ./swc_output_${{ matrix.runtime }}.txt
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion scripts/ci/github/check_weights_swc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
RUNTIME=$1
# Get last release from github
# Remove before merging, and uncomment the line below
RELEASE="v0.9.39"
RELEASE="v0.9.38"
# RELEASE=$(curl -s https://api.github.com/repos/paritytech/polkadot/releases/latest | jq -r .tag_name)

swc compare commits --method asymptotic --path-pattern "./runtime/$RUNTIME/src/weights/**/*.rs" "$RELEASE"

0 comments on commit ff1d4f3

Please sign in to comment.