From d45f1fc4c068cdc98150f65863bd21b951b6e1d3 Mon Sep 17 00:00:00 2001 From: Yang Date: Fri, 27 Sep 2024 16:51:54 +0000 Subject: [PATCH] one more try --- .github/workflows/create-release-draft.yml | 4 +++- parachain/scripts/generate-release-notes.sh | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-release-draft.yml b/.github/workflows/create-release-draft.yml index 845cf578df..aa4ebba476 100644 --- a/.github/workflows/create-release-draft.yml +++ b/.github/workflows/create-release-draft.yml @@ -141,7 +141,9 @@ jobs: - name: Generate release notes run: | - mv litentry-collator parachain + if [ -d "litentry-collator" ]; then + rm litentry-collator/*.tar.gz + fi ./parachain/scripts/generate-release-notes.sh ${{ github.workspace }}/.github/release_notes.md ${{ needs.set-release-type.outputs.release_type }} ${{ env.DIFF_TAG }} env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/parachain/scripts/generate-release-notes.sh b/parachain/scripts/generate-release-notes.sh index 36408beca7..03f3122d68 100755 --- a/parachain/scripts/generate-release-notes.sh +++ b/parachain/scripts/generate-release-notes.sh @@ -57,7 +57,8 @@ if is_client_release; then docker images NODE_VERSION=$(grep version node/Cargo.toml | head -n1 | sed "s/'$//;s/.*'//") NODE_BIN=litentry-collator - NODE_SHA1SUM=$(shasum litentry-collator/"$NODE_BIN" | awk '{print $1}') + # if is_client_release, files are downloaded in the upper layer + NODE_SHA1SUM=$(shasum ../litentry-collator/"$NODE_BIN" | awk '{print $1}') if [ -f rust-toolchain.toml ]; then NODE_RUSTC_VERSION=$(rustc --version) else