From 938db3574254b2ef1d8df8d41264d01d3ea5ae82 Mon Sep 17 00:00:00 2001 From: Administrator Date: Wed, 27 Nov 2024 10:23:34 -0700 Subject: [PATCH] test docker tag output --- .github/workflows/build-deploy-ocr.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-deploy-ocr.yml b/.github/workflows/build-deploy-ocr.yml index 3dbe2e18..f7b7801b 100644 --- a/.github/workflows/build-deploy-ocr.yml +++ b/.github/workflows/build-deploy-ocr.yml @@ -28,7 +28,7 @@ jobs: runs-on: ubuntu-latest outputs: docker_inspect: ${{ steps.image_check.outputs.docker_inspect }} - set_tag: ${{ steps.set_tag.outputs.docker_tag }} + docker_tag: ${{ steps.set_tag.outputs.docker_tag }} steps: - uses: actions/checkout@v4 - name: Lowercase the repo name @@ -37,8 +37,9 @@ jobs: shell: bash id: set_tag run: |- - USER_INPUT="" + USER_INPUT="0dcbc5388c299de5f8b527a2c19d6ad08ed15f47" echo "docker_tag=$( + #this gives a new sha as default if dispatch input is empty echo ${USER_INPUT:-"${{ github.sha }}"} )" >> $GITHUB_OUTPUT - name: Check if image exists