From 41e79e99f18565755f225ff2b8ee5f270ae5bebf Mon Sep 17 00:00:00 2001 From: Adonis Ling Date: Wed, 4 Jan 2023 14:50:45 +0800 Subject: [PATCH] [chore](workflow) Re-build the third-party libraries automatically when the workflows fail (#19) --- .github/workflows/build-1.2.yml | 5 ++--- .github/workflows/build.yml | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-1.2.yml b/.github/workflows/build-1.2.yml index 203307f..0ce1b0d 100644 --- a/.github/workflows/build-1.2.yml +++ b/.github/workflows/build-1.2.yml @@ -225,7 +225,7 @@ jobs: gh release download "${tag_name}" content="$(gh release view "${tag_name}" | sed -n '/Update Time:/,/Doris Version:/p')" - echo -ne "${content}\nStatus: *SUCCESS*\n\n## Checksums\n\`\`\`\n$(sha256sum *)\n\`\`\`" >release_note.md + echo -ne "${content}\nStatus: *SUCCESS*\n\n## SHA256 Checksums\n\`\`\`\n$(sha256sum *)\n\`\`\`" >release_note.md gh release edit -F release_note.md "${tag_name}" failure: @@ -245,6 +245,5 @@ jobs: gh release download "${tag_name}" - content="$(gh release view "${tag_name}"" | sed -n '/Update Time:/,/Doris Version:/p')" - echo -ne "${content}\nStatus: *FAILURE*\n\n## Checksums\n\`\`\`\n$(sha256sum *)\n\`\`\`" >release_note.md + echo -ne "Status: *FAILURE*\n\n## SHA256 Checksums\n\`\`\`\n$(sha256sum *)\n\`\`\`" >release_note.md gh release edit -F release_note.md "${tag_name}" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 73b852f..f5ad7d6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -211,7 +211,7 @@ jobs: gh release download automation content="$(gh release view automation | sed -n '/Update Time:/,/Doris Version:/p')" - echo -ne "${content}\nStatus: *SUCCESS*\n\n## Checksums\n\`\`\`\n$(sha256sum *)\n\`\`\`" >release_note.md + echo -ne "${content}\nStatus: *SUCCESS*\n\n## SHA256 Checksums\n\`\`\`\n$(sha256sum *)\n\`\`\`" >release_note.md gh release edit -F release_note.md automation failure: @@ -229,6 +229,5 @@ jobs: run: | gh release download automation - content="$(gh release view automation | sed -n '/Update Time:/,/Doris Version:/p')" - echo -ne "${content}\nStatus: *FAILURE*\n\n## Checksums\n\`\`\`\n$(sha256sum *)\n\`\`\`" >release_note.md + echo -ne "Status: *FAILURE*\n\n## SHA256 Checksums\n\`\`\`\n$(sha256sum *)\n\`\`\`" >release_note.md gh release edit -F release_note.md automation