diff --git a/.github/workflows/build-docker-images.yml b/.github/workflows/build-docker-images.yml index 25971ca..1bb3255 100644 --- a/.github/workflows/build-docker-images.yml +++ b/.github/workflows/build-docker-images.yml @@ -27,12 +27,9 @@ jobs: id: vars working-directory: discovery run: | - pwd echo "date=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT echo "tag=${{github.ref_name }}" >> $GITHUB_OUTPUT - echo "sdkversion=$(grep github.com/Axway/agent-sdk go.mod | awk '{print $2}')" - echo "now ${{ steps.vars.outputs.sdkversion }}" - echo "sdkversion=$(grep github.com/Axway/agent-sdk go.mod | awk '{print $2}')" >> $GITHUB_OUTPUT + echo "sdkversion=$(grep -Eo "^[\s]+github.com/Axway/agent-sdk go.mod | awk '{print $2}')" >> $GITHUB_OUTPUT echo "commit=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_OUTPUT - name: Log in to the Container registry