From 8f92db31c303eaf5d57f5bee3cb476b943d90607 Mon Sep 17 00:00:00 2001 From: jandroav Date: Fri, 5 Jan 2024 09:56:21 +0100 Subject: [PATCH] fix(generate.yml): update spacectl stack deploy command to include setting current commit before deployment The previous command only deployed the stack without setting the current commit. This caused issues with tracking the deployed version. The updated command now sets the current commit to the latest commit SHA before deploying the stack. --- .github/workflows/generate.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index c9a00e1..88a91f4 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -70,7 +70,9 @@ jobs: SPACELIFT_API_KEY_ENDPOINT: ${{ secrets.SPACELIFT_API_KEY_ENDPOINT }} SPACELIFT_API_KEY_ID: ${{ secrets.SPACELIFT_API_KEY_ID }} SPACELIFT_API_KEY_SECRET: ${{ secrets.SPACELIFT_API_KEY_SECRET }} - run: spacectl stack deploy --id liquibase-github-actions --auto-confirm + run: | + spacectl stack set-current-commit --id liquibase-github-actions --commit ${{ github.sha }} + spacectl stack deploy --id liquibase-github-actions --auto-confirm generate-action: runs-on: ubuntu-latest