From 50fe46fbbf120a0657c1df35b370cdc9051d0f31 Mon Sep 17 00:00:00 2001 From: Michael Beemer Date: Fri, 23 Sep 2022 17:10:35 -0400 Subject: [PATCH] fix: checkout release tag before running container and binary releases (#171) Signed-off-by: Michael Beemer --- .github/workflows/release-please.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml index 19d865a42..a6648934d 100644 --- a/.github/workflows/release-please.yaml +++ b/.github/workflows/release-please.yaml @@ -32,7 +32,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 with: - submodules: recursive + ref: ${{ needs.release-please.outputs.release_tag_name }} - name: Log in to the Container registry uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 @@ -71,7 +71,7 @@ jobs: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ needs.release-please.outputs.release_tag_name }} labels: ${{ steps.meta.outputs.labels }} build-args: | - VERSION=${{ steps.meta.outputs.tags }} + VERSION=${{ needs.release-please.outputs.release_tag_name }} COMMIT=${{ github.sha }} DATE=${{ steps.date.outputs.date }} @@ -82,6 +82,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + ref: ${{ needs.release-please.outputs.release_tag_name }} - name: Set up Go uses: actions/setup-go@v3