From 2a1a689dc7d5e09635f248d9ceb10f12e434656e Mon Sep 17 00:00:00 2001 From: Chaminda Divitotawela Date: Thu, 3 Oct 2024 10:13:15 +1000 Subject: [PATCH] PR comment improvements --- .github/workflows/BesuContainerVerify.sh | 2 +- .github/workflows/docker-promote.yml | 13 ++++++++----- .github/workflows/draft-release.yml | 2 ++ 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/BesuContainerVerify.sh b/.github/workflows/BesuContainerVerify.sh index 81537f32648..9d3a10412b2 100644 --- a/.github/workflows/BesuContainerVerify.sh +++ b/.github/workflows/BesuContainerVerify.sh @@ -57,7 +57,7 @@ else fi # For the latest tag check the version match -if [[ ${TAG} == "latest" && ${CHECK_LATEST} == "true" ]] +if [[ ${TAG} =~ "latest" && ${CHECK_LATEST} == "true" ]] then _VERSION_IN_LOG=$(docker logs ${CONTAINER_NAME} | grep "#" | grep "Besu version" | cut -d " " -f 4 | sed 's/\s//g') echo "Extracted version from logs [$_VERSION_IN_LOG]" diff --git a/.github/workflows/docker-promote.yml b/.github/workflows/docker-promote.yml index 73e8fc67512..18a3cc31703 100644 --- a/.github/workflows/docker-promote.yml +++ b/.github/workflows/docker-promote.yml @@ -73,21 +73,24 @@ jobs: strategy: matrix: combination: - - tag: ${{ needs.validate.outputs.release_version }} - platform: '' - runner: ubuntu-22.04 - - tag: ${{ needs.validate.outputs.release_version }}-amd64 + - tag: latest-amd64 platform: 'linux/amd64' runner: ubuntu-22.04 - tag: latest platform: '' runner: ubuntu-22.04 - - tag: ${{ needs.validate.outputs.release_version }}-arm64 + - tag: latest-arm64 platform: '' runner: besu-arm64 + - tag: latest + platform: '' + runner: besu-arm64 + steps: - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + with: + sparse-checkout: '.github/workflows/BesuContainerVerify.sh' - name: Start container run: | diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml index 541a73b480a..8dc61bec461 100644 --- a/.github/workflows/draft-release.yml +++ b/.github/workflows/draft-release.yml @@ -305,6 +305,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + with: + sparse-checkout: '.github/workflows/BesuContainerVerify.sh' - name: Start container run: |