From a42d754ef4964a78dc004ac222050c6871a7fb02 Mon Sep 17 00:00:00 2001 From: Martin Pugh Date: Tue, 4 Apr 2023 14:47:40 -0700 Subject: [PATCH] fix comments, remove artifact. I hate CI --- .github/workflows/check-weights.yml | 17 ++++------------- scripts/ci/github/check_weights_swc.sh | 2 +- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/check-weights.yml b/.github/workflows/check-weights.yml index f24d7f499955..c9c28fef2c74 100644 --- a/.github/workflows/check-weights.yml +++ b/.github/workflows/check-weights.yml @@ -35,22 +35,13 @@ 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 + echo "${{ matrix.runtime }} changes:\n```" > ./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 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 - 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 }} \ No newline at end of file diff --git a/scripts/ci/github/check_weights_swc.sh b/scripts/ci/github/check_weights_swc.sh index 8cbc4b61c26d..97904a036877 100755 --- a/scripts/ci/github/check_weights_swc.sh +++ b/scripts/ci/github/check_weights_swc.sh @@ -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"